You are here

function menu_link_field_instance_settings_form in Menu Link (Field) 7

Implements hook_field_instance_settings_form().

File

./menu_link.field.inc, line 56
Defines a menu link field type.

Code

function menu_link_field_instance_settings_form($field, $instance) {
  $settings = $instance['settings'];
  $form['menu_options'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Available menus'),
    '#default_value' => $settings['menu_options'],
    '#options' => menu_get_menus(),
    '#description' => t('The menus available to place links in for this field.'),
    '#required' => TRUE,
    '#weight' => -5,
  );
  return $form;
}