You are here

function _views_rss_process_date_sources in Views RSS 7.2

Same name and namespace in other branches
  1. 8.3 views_rss.module \_views_rss_process_date_sources()
  2. 8.2 views_rss.module \_views_rss_process_date_sources()
  3. 6.2 views_rss.module \_views_rss_process_date_sources()

Add table aliases for additional fields used for altering view query.

File

./views_rss.module, line 106
Module providing fields-based views style plugin for RSS feed generation.

Code

function _views_rss_process_date_sources($date_sources) {
  foreach ($date_sources as $module => $module_date_sources) {
    foreach ($module_date_sources as $base_table => $elements) {
      foreach ($elements as $element_name => $definition) {
        if (!isset($definition['alias'])) {
          $date_sources[$module][$base_table][$element_name]['alias'] = $element_name;
        }
      }
    }
  }
  return $date_sources;
}