function cis_service_activation_codes_page_build

cis7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)
cle7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)
elmsmedia7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)
icor7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)
meedjum_blog7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)
mooc7 cis_service_activation_codes.module cis_service_activation_codes_page_build(&$page)

Implements hook_page_build().

File

sites/all/modules/elmsln_contrib/cis_connector/modules/cis_service_activation_codes/cis_service_activation_codes.module, line 53
Activation code integration with CIS.

Code

function cis_service_activation_codes_page_build(&$page) {
  // don't do this on admin pages
  if (arg(0) != 'admin' && arg(0) != 'activation-blocked') {
    // if they aren't verified, present activation code form
    if (!_cis_service_activation_codes_verify()) {
      drupal_add_css(drupal_get_path('module', 'cis_service_activation_codes') . '/cis_service_activation_codes.css');
      drupal_add_js(drupal_get_path('module', 'cis_service_activation_codes') . '/cis_service_activation_codes.js');
      $page['content']['cis_service_activation_codes'] = array(
        '#markup' => drupal_render(drupal_get_form('cis_service_activation_codes_form')),
        '#weight' => 100,
      );
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.