You are here

function views_rss_views_data_alter in Views RSS 6.2

Same name and namespace in other branches
  1. 7.2 views/views_rss.views.inc \views_rss_views_data_alter()

Implementation of hook_views_data_alter().

File

views/views_rss.views.inc, line 59
Views plugins, handlers and hooks definition for Views RSS module.

Code

function views_rss_views_data_alter(&$data) {
  $data['users']['mail']['field']['handler'] = 'views_rss_handler_field_user_mail';
  $data['term_node']['tid']['field']['handler'] = 'views_rss_handler_field_term_node_tid';

  // Replace content_handler_field_multiple field handler with its extended
  // version so we could use array values returned by Views RSS formatters.
  foreach ($data as $group => $fields) {
    foreach ($fields as $field_id => $field) {
      if (!empty($field['field']['handler']) && $field['field']['handler'] == 'content_handler_field_multiple') {
        $data[$group][$field_id]['field']['handler'] = 'views_rss_handler_field_multiple';
      }
    }
  }
}