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