Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个 Drupal 模块,它不一定依赖于其他模块,但如果启用了 Path 模块,则可以提供其他选项。
我想知道并且似乎无法通过搜索找到的是,是否可以检测到当前从另一个模块启用了哪些模块,以便该模块可以提供使用这些模块的选项?
您也可以像这样检查:
if(function_exists('a_function_you_know_the_module_provides')) { }