You are here

function ds_edit_preprocess_field_form in Display Suite 7

Same name and namespace in other branches
  1. 7.2 modules/ds_ui/includes/ds.fields.inc \ds_edit_preprocess_field_form()

Manage a Preprocess field.

2 string references to 'ds_edit_preprocess_field_form'
ds_ajax_add_field in ./ds.field_ui.inc
Handles ctools modal Add field
ds_menu in ./ds.module
Implements hook_menu().

File

./ds.fields.inc, line 318
Administrative functions for managing custom fields for every entity.

Code

function ds_edit_preprocess_field_form($form, &$form_state, $ctools_field = '') {
  $custom_field = ds_shared_form($form, $ctools_field);
  $form['info'] = array(
    '#markup' => t('The machine name of this field must reflect the key in the variables, e.g. "submitted". So in most cases, it is very likely you will have to manually edit the machine name as well, which can not be changed anymore after saving.'),
    '#weight' => -10,
  );
  $form['#validate'][] = 'ds_preprocess_field_form_validate';
  return $form;
}