You are here

function commerce_backoffice_views_pre_build in Commerce Backoffice 7

Adds the action links to $attachment_before (below the exposed filters).

File

./commerce_backoffice.module, line 32

Code

function commerce_backoffice_views_pre_build(&$view) {
  if (strpos($view->name, 'commerce_backoffice_') !== FALSE) {
    $actions = menu_local_actions();
    $view->attachment_before = '<ul class="action-links">' . drupal_render($actions) . '</ul>';
  }
}