You are here

function admin_menu_links_search in Administration menu 7.3

Same name and namespace in other branches
  1. 8.3 admin_menu.inc \admin_menu_links_search()

Build search widget.

See also

theme_admin_menu_links()

1 call to admin_menu_links_search()
admin_menu_output in ./admin_menu.module
Build the administration menu output.

File

./admin_menu.inc, line 592
Menu builder functions for Administration menu.

Code

function admin_menu_links_search() {
  $links = array(
    '#theme' => 'admin_menu_links',
    '#wrapper_attributes' => array(
      'id' => 'admin-menu-search',
    ),
    '#weight' => 180,
  );
  $links['search'] = array(
    '#type' => 'textfield',
    '#title' => t('Search'),
    '#title_display' => 'attribute',
    '#attributes' => array(
      'placeholder' => t('Search'),
      'class' => array(
        'admin-menu-search',
      ),
    ),
  );
  return $links;
}