function node_theme

Same name in other branches
  1. 9 core/modules/node/node.module \node_theme()
  2. 8.9.x core/modules/node/node.module \node_theme()
  3. 10 core/modules/node/node.module \node_theme()
  4. 11.x core/modules/node/node.module \node_theme()

Implements hook_theme().

File

modules/node/node.module, line 125

Code

function node_theme() {
    return array(
        'node' => array(
            'render element' => 'elements',
            'template' => 'node',
        ),
        'node_search_admin' => array(
            'render element' => 'form',
        ),
        'node_add_list' => array(
            'variables' => array(
                'content' => NULL,
            ),
            'file' => 'node.pages.inc',
        ),
        'node_preview' => array(
            'variables' => array(
                'node' => NULL,
            ),
            'file' => 'node.pages.inc',
        ),
        'node_admin_overview' => array(
            'variables' => array(
                'name' => NULL,
                'type' => NULL,
            ),
            'file' => 'content_types.inc',
        ),
        'node_recent_block' => array(
            'variables' => array(
                'nodes' => NULL,
            ),
        ),
        'node_recent_content' => array(
            'variables' => array(
                'node' => NULL,
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.