You are here

public function ViewsRulesLoopUI::operations in Views Rules 7

Implements RulesPluginUIInterface.

Overrides RulesContainerPluginUI::operations

File

rules/views_rules.ui.inc, line 95
Rules UI implementation for Views Rules plugins.

Class

ViewsRulesLoopUI
Views loop administrative UI.

Code

public function operations() {
  $ops = parent::operations();
  if (module_exists('views_ui') && user_access('administer views')) {

    /** @var $view view */
    $view = $this->element
      ->getView();
    $link = array(
      'title' => t('edit view display'),
      'href' => 'admin/structure/views/view/' . $view->name . '/edit/' . $view->current_display,
    );
    array_unshift($ops['#links'], $link);
  }
  return $ops;
}