You are here

function views_theme in Views (for Drupal 7) 5

Same name and namespace in other branches
  1. 8.3 views.module \views_theme()
  2. 6.3 views.module \views_theme()
  3. 6.2 views.module \views_theme()
  4. 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);
  }
}