You are here

function node_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/node/node.module \node_theme()
  2. 6 modules/node/node.module \node_theme()
  3. 9 core/modules/node/node.module \node_theme()
  4. 10 core/modules/node/node.module \node_theme()

Implements hook_theme().

File

modules/node/node.module, line 125
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

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,
      ),
    ),
  );
}