You are here

function ds_edit_ctools_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_ctools_field_form()

Manage a CTools field.

2 string references to 'ds_edit_ctools_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 296
Administrative functions for managing custom fields for every entity.

Code

function ds_edit_ctools_field_form($form, &$form_state, $ctools_field = '') {
  $custom_field = ds_shared_form($form, $ctools_field);
  $form['info'] = array(
    '#markup' => t('The content of this field is configurable on the "Manage display" screens.'),
    '#weight' => -10,
  );
  $form['#validate'][] = 'ds_ctools_field_form_validate';
  return $form;
}