toolbar_test.module

A dummy module to test API interaction with the Toolbar module.

File

drupal/core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module
View source
<?php

/**
 * @file
 * A dummy module to test API interaction with the Toolbar module.
 */

/**
 * Um
 */
function toolbar_test_toolbar() {
  $tray_items = array(
    l('link 1', '<front>'),
    l('link 2', '<front>'),
    l('link 3', '<front>'),
  );
  $items['testing'] = array(
    'tab' => array(
      'title' => t('Test tab'),
      'href' => '',
      'html' => FALSE,
      'attributes' => array(
        'title' => t('Test tab'),
      ),
    ),
    'tray' => array(
      '#heading' => t('Test tray'),
      'content' => array(
        '#theme' => 'item_list',
        '#items' => $tray_items,
        '#attributes' => array(
          'class' => array(
            'menu',
          ),
        ),
      ),
    ),
    'weight' => 50,
  );
  return $items;
}

Functions

Namesort descending Description
toolbar_test_toolbar Um