markdown Drupal变量约定

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Drupal变量约定相关的知识,希望对你有一定的参考价值。

# Template variable name conventions

In templates.php, you can assign variables to $variables['whatever']...

node   
	for a node, $variables['whatever'] become $whatever under the node template

page   
	for a page, $variables['whatever'] becomes $page['whatever']

$variables    
	built by drupal during a page request. all the modules have the ability to add to and alter these. the last thing that happens before rendering is the theme_alter and theme_preprocess functions fire, giving a theme a last change to change these

$GLOBAL    
	a set of variables that once defined will live throughout the rest of the process, and be available to everything. be careful -- name conflicts and memory badness are a problem here!!! Also makes for hard-to-debug code

以上是关于markdown Drupal变量约定的主要内容,如果未能解决你的问题,请参考以下文章

markdown Drupal有条件地显示/隐藏字段。

markdown Drupal自定义模块文档

markdown 使用作曲家应用drupal补丁

markdown settings.local.php(Drupal)

markdown Drupal的东西

markdown 将ReCAPTCHA与Drupal一起使用