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 6 模块。
我想对其进行编码,使其仅在有人启用它时才显示在网站的主屏幕上。 我应该添加什么以及在哪里添加?
[解决了]
基本上在 YOURMODULE.module 文件中添加以下条件
if(drupal_is_front_page()) { //显示条件
}