You are here

function classified_field_formatter_settings_form in Classified Ads 7.3

Implements hook_field_formatter_settings_form().

  • should Classified Ads formatter add a "title" attribute ?

We do not test the type of formatter since we only defined one.

File

./classified.module, line 967
A pure D7 classified ads module inspired by the ed_classified module.

Code

function classified_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $ret = array();
  $ret['link_title'] = array(
    '#type' => 'checkbox',
    '#title' => t('With link title'),
    '#default_value' => $settings['link_title'],
  );
  return $ret;
}