You are here

function drupal_common_theme in Drupal 6

Same name and namespace in other branches
  1. 8 core/includes/theme.inc \drupal_common_theme()
  2. 7 includes/common.inc \drupal_common_theme()
  3. 9 core/includes/theme.inc \drupal_common_theme()

Provide theme registration for themes across .inc files.

1 call to drupal_common_theme()
system_theme in modules/system/system.module
Implementation of hook_theme().

File

includes/common.inc, line 3133
Common functions that many Drupal modules will need to reference.

Code

function drupal_common_theme() {
  return array(
    // theme.inc
    'placeholder' => array(
      'arguments' => array(
        'text' => NULL,
      ),
    ),
    'page' => array(
      'arguments' => array(
        'content' => NULL,
        'show_blocks' => TRUE,
        'show_messages' => TRUE,
      ),
      'template' => 'page',
    ),
    'maintenance_page' => array(
      'arguments' => array(
        'content' => NULL,
        'show_blocks' => TRUE,
        'show_messages' => TRUE,
      ),
      'template' => 'maintenance-page',
    ),
    'update_page' => array(
      'arguments' => array(
        'content' => NULL,
        'show_messages' => TRUE,
      ),
    ),
    'install_page' => array(
      'arguments' => array(
        'content' => NULL,
      ),
    ),
    'task_list' => array(
      'arguments' => array(
        'items' => NULL,
        'active' => NULL,
      ),
    ),
    'status_messages' => array(
      'arguments' => array(
        'display' => NULL,
      ),
    ),
    'links' => array(
      'arguments' => array(
        'links' => NULL,
        'attributes' => array(
          'class' => 'links',
        ),
      ),
    ),
    'image' => array(
      'arguments' => array(
        'path' => NULL,
        'alt' => '',
        'title' => '',
        'attributes' => NULL,
        'getsize' => TRUE,
      ),
    ),
    'breadcrumb' => array(
      'arguments' => array(
        'breadcrumb' => NULL,
      ),
    ),
    'help' => array(
      'arguments' => array(),
    ),
    'submenu' => array(
      'arguments' => array(
        'links' => NULL,
      ),
    ),
    'table' => array(
      'arguments' => array(
        'header' => NULL,
        'rows' => NULL,
        'attributes' => array(),
        'caption' => NULL,
      ),
    ),
    'table_select_header_cell' => array(
      'arguments' => array(),
    ),
    'tablesort_indicator' => array(
      'arguments' => array(
        'style' => NULL,
      ),
    ),
    'box' => array(
      'arguments' => array(
        'title' => NULL,
        'content' => NULL,
        'region' => 'main',
      ),
      'template' => 'box',
    ),
    'block' => array(
      'arguments' => array(
        'block' => NULL,
      ),
      'template' => 'block',
    ),
    'mark' => array(
      'arguments' => array(
        'type' => MARK_NEW,
      ),
    ),
    'item_list' => array(
      'arguments' => array(
        'items' => array(),
        'title' => NULL,
        'type' => 'ul',
        'attributes' => NULL,
      ),
    ),
    'more_help_link' => array(
      'arguments' => array(
        'url' => NULL,
      ),
    ),
    'xml_icon' => array(
      'arguments' => array(
        'url' => NULL,
      ),
    ),
    'feed_icon' => array(
      'arguments' => array(
        'url' => NULL,
        'title' => NULL,
      ),
    ),
    'more_link' => array(
      'arguments' => array(
        'url' => NULL,
        'title' => NULL,
      ),
    ),
    'closure' => array(
      'arguments' => array(
        'main' => 0,
      ),
    ),
    'blocks' => array(
      'arguments' => array(
        'region' => NULL,
      ),
    ),
    'username' => array(
      'arguments' => array(
        'object' => NULL,
      ),
    ),
    'progress_bar' => array(
      'arguments' => array(
        'percent' => NULL,
        'message' => NULL,
      ),
    ),
    'indentation' => array(
      'arguments' => array(
        'size' => 1,
      ),
    ),
    // from pager.inc
    'pager' => array(
      'arguments' => array(
        'tags' => array(),
        'limit' => 10,
        'element' => 0,
        'parameters' => array(),
      ),
    ),
    'pager_first' => array(
      'arguments' => array(
        'text' => NULL,
        'limit' => NULL,
        'element' => 0,
        'parameters' => array(),
      ),
    ),
    'pager_previous' => array(
      'arguments' => array(
        'text' => NULL,
        'limit' => NULL,
        'element' => 0,
        'interval' => 1,
        'parameters' => array(),
      ),
    ),
    'pager_next' => array(
      'arguments' => array(
        'text' => NULL,
        'limit' => NULL,
        'element' => 0,
        'interval' => 1,
        'parameters' => array(),
      ),
    ),
    'pager_last' => array(
      'arguments' => array(
        'text' => NULL,
        'limit' => NULL,
        'element' => 0,
        'parameters' => array(),
      ),
    ),
    'pager_link' => array(
      'arguments' => array(
        'text' => NULL,
        'page_new' => NULL,
        'element' => NULL,
        'parameters' => array(),
        'attributes' => array(),
      ),
    ),
    // from menu.inc
    'menu_item_link' => array(
      'arguments' => array(
        'item' => NULL,
      ),
    ),
    'menu_tree' => array(
      'arguments' => array(
        'tree' => NULL,
      ),
    ),
    'menu_item' => array(
      'arguments' => array(
        'link' => NULL,
        'has_children' => NULL,
        'menu' => '',
      ),
    ),
    'menu_local_task' => array(
      'arguments' => array(
        'link' => NULL,
        'active' => FALSE,
      ),
    ),
    'menu_local_tasks' => array(
      'arguments' => array(),
    ),
    // from form.inc
    'select' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'fieldset' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'radio' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'radios' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'password_confirm' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'date' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'item' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'checkbox' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'checkboxes' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'submit' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'button' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'image_button' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'hidden' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'token' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'textfield' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'form' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'textarea' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'markup' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'password' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'file' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'form_element' => array(
      'arguments' => array(
        'element' => NULL,
        'value' => NULL,
      ),
    ),
  );
}