You are here

class rotor_plugin_row_rotor in Rotor Banner 6.2

Same name and namespace in other branches
  1. 7 views/rotor_plugin_row_rotor.inc \rotor_plugin_row_rotor

Style plugin to render a map.

Hierarchy

Expanded class hierarchy of rotor_plugin_row_rotor

1 string reference to 'rotor_plugin_row_rotor'
rotor_views_plugins in views/rotor.views.inc
Implementation of hook_views_plugins

File

views/rotor_plugin_row_rotor.inc, line 13
GMap style plugin.

View source
class rotor_plugin_row_rotor extends views_plugin_row {

  /**
   * Set default options
   */
  function option_definition() {
    $options = parent::option_definition();
    $options['imagecache_preset'] = array(
      'default' => '',
    );
    return $options;
  }
  function render($row) {
    $output = theme($this
      ->theme_functions(), $this->view, $this->options, $row);
    return trim($output);
  }

  /**
   * Render the given style.
   */

  /**
   * Render the given style.
   */
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    if (module_exists('imagecache')) {
      $presets[0] = t('None');
      $presets += rotor_get_imagecache_presets();
      $form['imagecache_preset'] = array(
        '#type' => 'select',
        '#title' => t('Imagecache preset'),
        '#default_value' => $this->options['imagecache_preset'],
        '#options' => $presets,
        '#description' => t('Select the imagecache preset to use with the images.'),
      );
    }
  }

}

Members