You are here

function views_rss_extract_element_names in Views RSS 8.2

Same name and namespace in other branches
  1. 8.3 views_rss.module \views_rss_extract_element_names()
  2. 6.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.

7 calls to views_rss_extract_element_names()
RssFields::buildOptionsForm in src/Plugin/views/style/RssFields.php
Provide a form to edit options for this plugin.
RssFields::buildOptionsForm in src/Plugin/views/row/RssFields.php
Function buildOptionsForm.
RssFields::defineOptions in src/Plugin/views/style/RssFields.php
Information about options for all kinds of purposes will be held here.
RssFields::defineOptions in src/Plugin/views/row/RssFields.php
Function defineOptions.
RssFields::getChannelElements in src/Plugin/views/style/RssFields.php
Return an array of additional XHTML elements to add to the channel.

... See full list

File

./views_rss.module, line 95
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);
}