You are here

function menu_token_custom_entity_submit in Menu Token 8

Same name and namespace in other branches
  1. 9.1.x menu_token.module \menu_token_custom_entity_submit()

Custom form submit handler.

1 string reference to 'menu_token_custom_entity_submit'
menu_token_form_menu_link_content_form_alter in ./menu_token.module
Implements hook_form_FORM_ID_alter().

File

./menu_token.module, line 200
Contains menu_token.module.

Code

function menu_token_custom_entity_submit($form, &$form_state) {
  $triggering_element = $form_state
    ->getTriggeringElement();
  $form_state
    ->set('rebuild_with_custom_element', $triggering_element['#value']);
  $form_state
    ->setRebuild();
}