You are here

function payment_webform_page_alter in Payment for Webform 7

Implements hook_page_alter().

File

./payment_webform.module, line 34
Hook implementations and shared functions.

Code

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