function toolbar_theme

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

Implements hook_theme().

File

modules/toolbar/toolbar.module, line 39

Code

function toolbar_theme($existing, $type, $theme, $path) {
    $items['toolbar'] = array(
        'render element' => 'toolbar',
        'template' => 'toolbar',
        'path' => drupal_get_path('module', 'toolbar'),
    );
    $items['toolbar_toggle'] = array(
        'variables' => array(
            'collapsed' => NULL,
            'attributes' => array(),
        ),
    );
    return $items;
}

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