You are here

function sarnia_field_ui_menu_page_callback in Sarnia 7

Load the appropriate form for a particular Sarnia bundle Field UI sub-path.

See also

sarnia_menu_alter()

1 string reference to 'sarnia_field_ui_menu_page_callback'
sarnia_menu_alter in ./sarnia.module
Implements hook_menu_alter().

File

./sarnia.module, line 303

Code

function sarnia_field_ui_menu_page_callback($field, $path = 'edit') {
  switch ($path) {
    case 'field-settings':
      $form = 'field_ui_field_settings_form';
      break;
    case 'widget-type':
      $form = 'field_ui_widget_type_form';
      break;
    case 'delete':
      $form = 'field_ui_field_delete_form';
      break;
    case 'edit':
    default:
      $form = 'field_ui_field_edit_form';
  }
  return drupal_get_form($form, $field);
}