You are here

function menu_token_set in Menu Token 6

1 call to menu_token_set()
menu_token_form_menu_edit_item_submit in ./menu_token.admin.inc
Custom submit function for form menu_edit_form.

File

./menu_token.inc, line 47

Code

function menu_token_set($mlid, $options) {
  global $menu_token_conf;
  db_query('DELETE FROM {menu_token} WHERE mlid = %d', $mlid);
  $options['mlid'] = $mlid;
  $record = (object) $options;
  drupal_write_record('menu_token', $record);
  unset($menu_token_conf[$mlid]);
}