You are here

function views_rss_extract_element_names in Views RSS 6.2

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

Extracts and returns an array containing element namespace and name.

5 calls to views_rss_extract_element_names()
template_preprocess_views_view_views_rss in theme/theme.inc
Template preprocessor for views-view-views-rss.tpl.php.
views_rss_plugin_style_fields::map_rows in views/views_rss_plugin_style_fields.inc
Map views row result to an RSS item.
views_rss_plugin_style_fields::options_form in views/views_rss_plugin_style_fields.inc
Provide a form for setting options.
views_rss_plugin_style_fields::option_definition in views/views_rss_plugin_style_fields.inc
_views_rss_process_namespaces in ./views_rss.module
Add namespaces not defined by any hook_views_rss_namespaces(), but used in any of defined <channel> or <item> elements. Let's also add "xmlns" prefix by default to such namespaces.

File

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

Code

function views_rss_extract_element_names($element, $core_namespace = '') {
  if (!strstr($element, ':')) {
    $element = $core_namespace . ':' . $element;
  }
  return explode(':', $element);
}