You are here

function notifications_custom_fields_form_add_field in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_custom/notifications_custom.admin.inc \notifications_custom_fields_form_add_field()

Submit callback for adding new fields

1 string reference to 'notifications_custom_fields_form_add_field'
notifications_custom_fields_form in notifications_custom/notifications_custom.admin.inc
Fields form: edit /add fields to custom subscription type

File

notifications_custom/notifications_custom.admin.inc, line 240
Custom notifications module (admin features)

Code

function notifications_custom_fields_form_add_field(&$form, &$form_state) {
  $form_state['values']['fields']['type'][] = $form_state['values']['fields']['name']['new'];
  $form_state['values']['fields']['value'][] = NULL;
  $form_state['values']['fields']['edit'][] = '';
  $form_state['rebuild'] = TRUE;
}