You are here

function panelizer_defaults_ui::list_page in Panelizer 7.3

Same name and namespace in other branches
  1. 7.2 plugins/export_ui/panelizer_defaults_ui.class.php \panelizer_defaults_ui::list_page()

Master entry point for handling a list.

It is unlikely that a child object will need to override this method, unless the listing mechanism is going to be highly specialized.

Overrides ctools_export_ui::list_page

File

plugins/export_ui/panelizer_defaults_ui.class.php, line 54
Contains the administrative UI for selectable panelizer defaults.

Class

panelizer_defaults_ui
@file Contains the administrative UI for selectable panelizer defaults.

Code

function list_page($js, $input) {
  if ($substitute = $this->entity_handler
    ->get_substitute($this->entity_view_mode, $this->entity_bundle)) {
    $url = $this->plugin['menu']['menu prefix'] . '/' . $substitute;
    drupal_set_message(t('This display is managed by the !view_mode display.', array(
      '!view_mode' => l($substitute, $url),
    )), 'status', FALSE);
    return '';
  }
  drupal_set_title($this->entity_handler
    ->get_bundle_title($this->entity_bundle));
  return parent::list_page($js, $input);
}