function biblio_ui_manage_bundles_manage_submit in Bibliography Module 7.3
Creating/saving the new biblio type.
File
- modules/
biblio_ui/ biblio_ui.module, line 745 - Main functionality file for the biblio UI module.
Code
function biblio_ui_manage_bundles_manage_submit($form, &$form_state) {
$values = (object) array(
'type' => $form_state['values']['type'],
'name' => $form_state['values']['name'],
'description' => $form_state['values']['description'],
);
biblio_type_save($values);
$form_state['redirect'] = 'admin/structure/biblio';
drupal_set_message(t('The bundle @title was created successfully.', array(
'@title' => $form_state['values']['name'],
)));
// Clearing the menu cache after creating a new menu biblio type.
variable_set('menu_rebuild_needed', TRUE);
}