You are here

function menu_token_item_delete_form_submit in Menu Token 5

Extends menu_token_item_delete_form_submit().

File

./menu_token.module, line 61

Code

function menu_token_item_delete_form_submit($form_id, $form_values) {
  $token_enabled = variable_get('menu_token_enabled', array());
  if (isset($token_enabled[$form_values['mid']])) {
    unset($token_enabled[$form_values['mid']]);
  }
  variable_set('menu_token_enabled', $token_enabled);
}