You are here

function _menu_views_form_parents in Menu Views 8.3

Same name and namespace in other branches
  1. 7.2 menu_views.admin.inc \_menu_views_form_parents()

Helper function to determine where form values for menu views are located.

Return value

Array of parents to the menu views form elements.

2 calls to _menu_views_form_parents()
_menu_views_form in ./menu_views.admin.inc
Adds Menu Views settings to an existing form.
_menu_views_form_validate in ./menu_views.admin.inc
Validate handler for menu_edit_item form.

File

./menu_views.admin.inc, line 86
Form hooks for the menu_views module.

Code

function _menu_views_form_parents($form) {
  $parents = array();
  if (isset($form['#node'])) {
    $parents[] = 'menu';
    $parents[] = 'options';
  }
  elseif (_menu_views_options_tree($form)) {
    $parents[] = 'options';
  }
  $parents[] = 'menu_views';
  $parents[] = 'view';
  return $parents;
}