function views_theme in Views (for Drupal 7) 5
Same name and namespace in other branches
- 8.3 views.module \views_theme()
- 6.3 views.module \views_theme()
- 6.2 views.module \views_theme()
- 7.3 views.module \views_theme()
Easily theme any item to a view.
Parameters
$function: The name of the function to call.
$view: The view being themed.
3 calls to views_theme()
- theme_views_view in ./
views.module - Display a view.
- theme_views_view_teasers in ./
views.module - Display the nodes of a view as teasers.
- views_build_view in ./
views.module - This builds the basic view.
File
- ./
views.module, line 639
Code
function views_theme() {
$args = func_get_args();
$function = array_shift($args);
$view = $args[0];
if (!($func = theme_get_function($function . "_" . $view->name))) {
$func = theme_get_function($function);
}
if ($func) {
return call_user_func_array($func, $args);
}
}