You are here

function ctools_entity_field_content_type_formatter_styles in Chaos Tool Suite (ctools) 7

File

plugins/content_types/entity_context/entity_field.inc, line 232

Code

function ctools_entity_field_content_type_formatter_styles($form, &$form_state) {
  if (!$form_state['conf']['formatter_settings']) {
    $form_state['conf']['formatter_settings'] = array();
  }
  $conf = $form_state['conf'];
  $subtype = $form_state['subtype_name'];
  list($entity_type, $field_name) = explode(':', $subtype, 2);
  $field = field_info_field($field_name);
  ctools_form_include($form_state, 'field_ui.admin', 'field_ui', '');
  ctools_form_include($form_state, 'fields');
  $form['ctools_keywords'] = array(
    '#type' => 'item',
    '#description' => t('You may use keywords for substitutions.'),
  );
  $form['ctools_field_list'] = array(
    '#type' => 'value',
    '#value' => array(),
  );
  ctools_fields_get_field_formatter_settings_form($field, $conf['formatter'], $form, $form_state);
  return $form;
}