You are here

function views_skinr_ui_element_title in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 modules/views.skinr.inc \views_skinr_ui_element_title()

Implements hook_skinr_ui_element_title().

File

modules/views.skinr.inc, line 38
Implements Skinr hooks for views.module.

Code

function views_skinr_ui_element_title($module, $element, $theme_name) {
  if ($module == 'views') {
    list($name, $display_id) = explode('__', $element, 2);
    if ($view = views_get_view($name)) {
      if ($view
        ->set_display($display_id)) {
        return $view
          ->get_title();
      }
    }
  }
}