You are here

function paymentreference_page_alter in Payment 7

Implements hook_page_alter().

File

modules/paymentreference/paymentreference.module, line 62
Hook implementations and general functions.

Code

function paymentreference_page_alter(&$page) {
  if (arg(0) == 'paymentreference') {
    $skip_regions = array_diff(element_children($page), array(
      'content',
    ));
    foreach ($skip_regions as $skip_region) {
      $page[$skip_region]['#access'] = FALSE;
    }
  }
}