function biblio_ui_manage_biblio_submit in Bibliography Module 7.3
Save the form biblio.
File
- modules/
biblio_ui/ biblio_ui.module, line 600 - Main functionality file for the biblio UI module.
Code
function biblio_ui_manage_biblio_submit($form, &$form_state) {
$biblio = $form_state['#entity'];
field_attach_submit('biblio', $biblio, $form, $form_state);
$biblio->title = $form_state['values']['title'];
$biblio->path = $form_state['values']['path'];
$timestamp_property = empty($biblio->is_new) ? 'changed' : 'created';
$biblio->{$timestamp_property} = strtotime($form_state['values']['created']);
$biblio->drupal_uid = user_load_by_name($form_state['values']['name'])->uid;
$biblio
->save();
$form_state['redirect'] = 'biblio/' . $biblio->bid;
}