You are here

function views_rss_map_assoc in Views RSS 7.2

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

Forms associative array from linear array, or returns original array if already associative.

1 call to views_rss_map_assoc()
views_rss_plugin_style_fields::options_form in views/views_rss_plugin_style_fields.inc
Provide a form for setting options.

File

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

Code

function views_rss_map_assoc($array) {
  if (!(array_keys($array) !== range(0, count($array) - 1))) {
    $array = drupal_map_assoc($array);
  }
  return $array;
}