function admin_menu_links_search

nittany7 admin_menu.inc admin_menu_links_search()
cis7 admin_menu.inc admin_menu_links_search()
mooc7 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 modules/contrib/admin_menu/admin_menu.module
Build the administration menu output.

File

modules/contrib/admin_menu/admin_menu.inc, line 595
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;
}