You are here

function _menu_icons_get_form in Menu Icons 6

Build the form structure.

Return value

A form array with a textfield for a menu icon.

1 call to _menu_icons_get_form()
menu_icons_form_alter in ./menu_icons.module
Implementation of hook_form_alter

File

./menu_icons.module, line 42
Module to associate icons with menu items

Code

function _menu_icons_get_form($mlid) {
  return array(
    '#type' => 'textfield',
    '#title' => t('Icon path'),
    '#default_value' => menu_icons_get_path($mlid),
    '#description' => t('A Drupal path to the icon or image to associate with this menu item.'),
    '#required' => FALSE,
  );
}