You are here

public function views_content_plugin_display_panel_pane::validate in Chaos Tool Suite (ctools) 7

Make sure the display and all associated handlers are valid.

Return value

Empty array if the display is valid; an array of error strings if it is not.

Overrides views_plugin_display::validate

File

views_content/plugins/views/views_content_plugin_display_panel_pane.inc, line 391

Class

views_content_plugin_display_panel_pane
The plugin that handles a panel_pane.

Code

public function validate() {

  // To bypass the validation of the path from Views we temporarily
  // override the path if one doesn't exist because it will be generated
  // by panels though we want the rest of the validations to run.
  $path = $this
    ->get_path();
  if (!$path) {
    $this
      ->set_option('path', $_GET['q']);
  }
  return parent::validate();
}