You are here

views_rss.views.inc in Views RSS 7.2

Views plugins, handlers and hooks definition for Views RSS module.

File

views/views_rss.views.inc
View source
<?php

/**
 * @file
 * Views plugins, handlers and hooks definition for Views RSS module.
 */

/**
 * Implements hook_views_style_plugins().
 * Adds view types to views UI interface.
 */
function views_rss_views_plugins() {
  return array(
    'style' => array(
      'rss_fields' => array(
        'type' => 'feed',
        'title' => t('RSS Feed - Fields'),
        'help' => t('Outputs a RSS formatted feed'),
        'handler' => 'views_rss_plugin_style_fields',
        'path' => VIEWS_RSS_PATH . '/views',
        'theme' => 'views_view_views_rss',
        'theme file' => 'theme.inc',
        'theme path' => VIEWS_RSS_PATH . '/theme',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'uses grouping' => FALSE,
      ),
    ),
  );
}

/**
 * Implements hook_views_handlers().
 */
function views_rss_views_handlers() {
  return array(
    'info' => array(
      'path' => VIEWS_RSS_PATH . '/views',
    ),
    'handlers' => array(
      'views_rss_handler_field_user_mail' => array(
        'parent' => 'views_handler_field_user_mail',
      ),
      'views_rss_handler_field_term_node_tid' => array(
        'parent' => 'views_handler_field_term_node_tid',
      ),
    ),
  );
}

/**
 * Implements hook_views_data_alter().
 */
function views_rss_views_data_alter(&$data) {
  $data['users']['mail']['field']['handler'] = 'views_rss_handler_field_user_mail';
  $data['node']['term_node_tid']['field']['handler'] = 'views_rss_handler_field_term_node_tid';
}

Functions

Namesort descending Description
views_rss_views_data_alter Implements hook_views_data_alter().
views_rss_views_handlers Implements hook_views_handlers().
views_rss_views_plugins Implements hook_views_style_plugins(). Adds view types to views UI interface.