You are here

function views_rss_theme7 in Views RSS 6.2

Wrapper to theme() function imitating the way it works in D7 (with passing arguments as an array instead of a list).

3 calls to views_rss_theme7()
template_preprocess_views_view_views_rss in theme/theme.inc
Template preprocessor for views-view-views-rss.tpl.php.
template_preprocess_views_view_views_rss_field in theme/theme.inc
Template preprocessor for views-view-views-rss-field.tpl.php.
views_rss_plugin_style_fields::attach_to in views/views_rss_plugin_style_fields.inc
Attach this view to another display as a feed.

File

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

Code

function views_rss_theme7($callback, $variables) {
  static $hooks = NULL;
  if (!isset($hooks)) {
    init_theme();
    $hooks = theme_get_registry();
  }
  $parameters = array(
    $callback,
  );
  $arguments = !empty($hooks[$callback]['arguments']) ? $hooks[$callback]['arguments'] : array();
  foreach (array_keys($arguments) as $argument) {
    $parameters[] = !empty($variables[$argument]) ? $variables[$argument] : $hooks[$callback]['arguments'][$argument];
  }
  return call_user_func_array('theme', $parameters);
}