function nd_block_field_form_submit in Node displays 6
Save block field.
1 string reference to 'nd_block_field_form_submit'
- nd_block_field_form in includes/
nd.fields.inc - Block field form.
File
- includes/
nd.fields.inc, line 318 - Manage fields.
Code
function nd_block_field_form_submit($form, &$form_state) {
$fields = variable_get('nd_fields', array());
$fields[$form_state['values']['block_key']] = array(
'title' => $form_state['values']['block_title'],
'block' => $form_state['values']['block_block'],
'exclude' => $form_state['values']['block_exclude'],
'render' => $form_state['values']['block_render'],
'type' => $form['#field_type'],
);
variable_set('nd_fields', $fields);
$form_state['redirect'] = 'admin/content/types/nd/fields';
drupal_set_message(t('Field %field has been saved.', array(
'%field' => $form_state['values']['title'],
)));
}