function biblio_ui_create_fields_submit in Bibliography Module 7.3
Submit handler; Attaching the field on the bundle.
File
- modules/
biblio_ui/ biblio_ui.module, line 935 - Main functionality file for the biblio UI module.
Code
function biblio_ui_create_fields_submit($form, $form_state) {
biblio_create_field($form_state['values']['field_name'], 'biblio', $form_state['bundle']);
$field_info = biblio_fields_info($form_state['values']['field_name']);
$type = biblio_types($form_state['bundle']);
$params = array(
'%name' => $field_info['instance']['label'],
'%bundle' => $type->name,
);
drupal_set_message(t('The field %name added to the bundle %bundle succesfully.', $params));
}