summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc b/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc
index a54eccc..27106a8 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_style_rss.inc
@@ -1,4 +1,5 @@
<?php
+
/**
* @file
* Contains the RSS style plugin.
@@ -70,6 +71,21 @@ class views_plugin_style_rss extends views_plugin_style {
return array();
}
+ /**
+ * Get RSS feed description.
+ *
+ * @return string
+ * The string containing the description with the tokens replaced.
+ */
+ function get_description() {
+ $description = $this->options['description'];
+
+ // Allow substitutions from the first row.
+ $description = $this->tokenize_value($description, 0);
+
+ return $description;
+ }
+
function render() {
if (empty($this->row_plugin)) {
vpr('views_plugin_style_default: Missing row plugin');