You are here

class views_plugin_style_atom_delete in Views Atom 6

Same name and namespace in other branches
  1. 7 views_plugin_style_atom_delete.inc \views_plugin_style_atom_delete

@file Style plugin for an Atom feed using the Tombstone specification for entry deletion.

http://tools.ietf.org/html/draft-snell-atompub-tombstones-06

Note that as of this writing the Tombstone spec is still a draft.

Hierarchy

Expanded class hierarchy of views_plugin_style_atom_delete

1 string reference to 'views_plugin_style_atom_delete'
views_atom_views_plugins in views/views_atom.views.inc
Implementation of hook_views_plugins().

File

views/views_plugin_style_atom_delete.inc, line 12
Style plugin for an Atom feed using the Tombstone specification for entry deletion.

View source
class views_plugin_style_atom_delete extends views_plugin_style {

  /**
   * Attach this view to another display as a feed.
   */
  function attach_to($display_id, $path, $title) {
  }
  function option_definition() {
    $options = parent::option_definition();
    $options['guid'] = array(
      'use_feed' => array(
        'default' => array(),
      ),
    );
    return $options;
  }

  /**
   * Provide a form for setting options.
   */
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    $options = parent::option_definition();
    $handlers = $this->display->handler
      ->get_handlers('field');
    $form['guid'] = array(
      '#type' => 'fieldset',
      '#title' => t('GUID settings'),
      '#description' => t('Controls how the GUID is created.'),
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
    );
    if (module_exists('feeds')) {
      $form['guid']['use_existing_from_feed'] = array(
        '#title' => t('Use existing GUID when available'),
        '#type' => 'checkbox',
        '#default_value' => !empty($this->options['guid']['use_existing_from_feed']),
        '#description' => t('If the node was imported into the site from another feed, use the original GUID.'),
      );
    }
    $form['guid']['#access'] = count(element_children($form['guid'])) ? TRUE : FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_plugin_style_atom_delete::attach_to function Attach this view to another display as a feed.
views_plugin_style_atom_delete::options_form function Provide a form for setting options.
views_plugin_style_atom_delete::option_definition function