简体   繁体   English

Drupal应用程序开发

[英]Drupal app development

name = MagApp 1.0
description = Magapp module that enables MagApp powered publications.
core = 7.x
php = 5.1
package = MagApp
dependencies[] = references
dependencies[] = node_reference
dependencies[] = magapp_core_content_types
version = "7.x-2.0"

I have been created a module and the info file is written above is there any problem while changing the php version , Because i did it before months , so i have to update this module , Can i add dependencies directly without using modules . 我已经创建了一个模块,并且上面写的信息文件在更改php版本时有任何问题,因为我在几个月前做了,所以我必须更新这个模块,我可以直接添加依赖项而不使用模块。

Search the source of /modules for admin/structure and check how they built that *_menu() hook. 在/ modules中搜索admin / structure的源代码,并检查它们是如何构建那个* _menu()钩子的。

If you have access to the server and it's running *NIX you could do: 如果您可以访问服务器并且它正在运行* NIX,您可以执行以下操作:

grep -ri 'admin/structure' your_site_directory/modules/*

And then you can implement your own hook_menu() in your own module. 然后,您可以在自己的模块中实现自己的hook_menu() Might also be possible in the Structure -> Menu system of the web UI. 也可能在Web UI的Structure - > Menu系统中。 I don't recall. 我不记得了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM