You are here

function commerce_backoffice_preprocess_page in Commerce Backoffice 7

Removes the action links from pages containing backoffice views, they will be rendered as a part of the view itself.

File

./commerce_backoffice.module, line 22

Code

function commerce_backoffice_preprocess_page(&$vars) {
  $view = views_get_page_view();
  if (!empty($view) && strpos($view->name, 'commerce_backoffice_') !== FALSE) {
    $vars['action_links'] = '';
  }
}