You are here

4.6 $page不修改Drupal核心代码: 页脚区域对应的条目。

admin 的头像
Submitted by admin on 星期五, 2015-09-18 06:22

作者:老葛,北京亚艾元软件有限责任公司,http://www.yaiyuan.com

很多人,特别是初学Drupal的人,经常会问,模板里面的变量是从哪里蹦出来的。肯定是在别的地方定义了这些变量,所以我们才能在这里引用。这些变量是在下面的函数中定义的:

template_preprocess()

template_process()

template_preprocess_page()

template_process_page()

 

    有兴趣的可以在api.drupal.org查一下这些函数。我们也会在后面的内容中,对这些函数做进一步的介绍。


Drupal版本: