You are here

function _module_builder_menu_submit in Module Builder 6

1 string reference to '_module_builder_menu_submit'
module_builder_menu_form in ./module_builder.components.inc

File

./module_builder.components.inc, line 300

Code

function _module_builder_menu_submit($form, &$form_state) {
  $form_state['storage']['menu_item_count'] = count(element_children($form['items']));
  $items = $form_state['values']['items'];
  unset($items['new']);
  $form_state['storage']['items'] = $items;
}