You are here

function notifications_custom_fields_form_add_field in Notifications 6

Same name and namespace in other branches
  1. 6.4 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

File

notifications_custom/notifications_custom.admin.inc, line 239

Code

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