You are here

function npop_field_formatter_settings_form in Node pop-up 7

Implements hook_field_formatter_settings_form().

File

./npop.module, line 310
Create popup nodes with ajax and Drupal core functionality.

Code

function npop_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $image_styles = image_style_options(FALSE, PASS_THROUGH);
  $element['image_style'] = array(
    '#title' => t('Image style'),
    '#type' => 'select',
    '#default_value' => $settings['image_style'],
    '#empty_option' => t('None (original image)'),
    '#options' => $image_styles,
  );
  return $element;
}