You are here

function menu_token_method_callback in Menu Token 7

Ajax callback for the method select dropdown.

1 string reference to 'menu_token_method_callback'
menu_token_form_menu_edit_item_alter in ./menu_token.module
Implementation of hook_form_FORM_ID_alter().

File

./menu_token.module, line 584
Main module file for the Menu Token module.

Code

function menu_token_method_callback($form, $form_state) {
  $parents = $form_state['triggering_element']['#array_parents'];
  array_pop($parents);
  array_push($parents, 'menu_token_method_options_wrapper');
  return drupal_array_get_nested_value($form, $parents);
}