function _views_rss_process_date_sources in Views RSS 8.2
Same name and namespace in other branches
- 8.3 views_rss.module \_views_rss_process_date_sources()
- 6.2 views_rss.module \_views_rss_process_date_sources()
- 7.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 79 - 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;
}