You are here

function finder::relationships in Finder 7.2

Finder relationships.

Gets the list of possible relationships that can be used with this finder.

File

includes/finder.inc, line 1034
finder.inc

Class

finder
An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.

Code

function relationships() {
  if ($view = views_get_view($this->views_view)) {
    $options = array();
    $display = $this->views_display;
    if (isset($view->display[$display]->display_options['relationships'])) {
      foreach ($view->display[$display]->display_options['relationships'] as $rel_key => $rel) {
        $options[$rel_key] = $rel['label'];
      }
    }
    return $options;
  }
  return FALSE;
}