You are here

function references_dialog_plugin_display::get_path in References dialog 7

Return the base path to use for this display.

This can be overridden for displays that do strange things with the path.

Overrides views_plugin_display::get_path

File

views/references_dialog_plugin_display.inc, line 163
Contains the default display plugin.

Class

references_dialog_plugin_display
A plugin to handle defaults on a view.

Code

function get_path() {

  // If we have information about the instance, then use it to build the proper
  // path.
  if (isset($this->view->references_dialog['attachable'])) {
    $attachable =& $this->view->references_dialog['attachable']['name'];
    $view_name = $this->view->name;
    $display_name = $this->display->id;
    return 'references-dialog/search/' . $view_name . '/' . $display_name . '/' . $attachable;
  }
  else {
    return parent::get_path();
  }
}