function _views_maintenance_content_pane_title in Views Maintenance 7
Same name and namespace in other branches
- 6 includes/ctools.inc \_views_maintenance_content_pane_title()
 
Returns content pane human-readable title wrapped with placeholder.
Parameters
object $pane:
Return value
string
3 calls to _views_maintenance_content_pane_title()
- _views_maintenance_mini_panel_pane_use_case in includes/
ctools.inc  - Builds use case as pane in mini panel.
 - _views_maintenance_page_pane_use_case in includes/
ctools.inc  - Builds use case as pane in page manager page.
 - _views_maintenance_panel_node_pane_use_case in includes/
ctools.inc  - Builds use case as pane in panel node.
 
File
- includes/
ctools.inc, line 73  - Provides integration with Page Manager and Panels Mini.
 
Code
function _views_maintenance_content_pane_title($pane) {
  $result = '';
  switch ($pane->type) {
    case 'views':
      ctools_get_plugins('ctools', 'content_types', 'views');
      $result = views_content_views_content_type_admin_title($pane->subtype, $pane->configuration);
      break;
    case 'views_panes':
      ctools_get_plugins('ctools', 'content_types', 'views_panes');
      $result = views_content_views_panes_content_type_admin_title($pane->subtype, $pane->configuration, array());
      break;
  }
  return theme('views_maintenance_html_placeholder', array(
    'html' => $result,
  ));
}