function adaptivetheme_admin_preprocess_page

cis7 template.php adaptivetheme_admin_preprocess_page(&$vars)
cle7 template.php adaptivetheme_admin_preprocess_page(&$vars)
elmsmedia7 template.php adaptivetheme_admin_preprocess_page(&$vars)
icor7 template.php adaptivetheme_admin_preprocess_page(&$vars)
meedjum_blog7 template.php adaptivetheme_admin_preprocess_page(&$vars)
mooc7 template.php adaptivetheme_admin_preprocess_page(&$vars)

Override or insert variables into page templates.

File

sites/all/themes/ulmus/adaptivetheme/at_admin/template.php, line 6

Code

function adaptivetheme_admin_preprocess_page(&$vars) {
  // RFC2822 date format
  if ($rfc = date("r", time())) {
    $vars['datetime_rfc'] = t('@time', array('@time' => $rfc));
  }
  else {
    $rfc = '';
    $vars['datetime_rfc'] = '';
  }
  // ISO 8601 date format
  if ($iso = gmdate('Y-m-d\TH:i:sO')) {
    $vars['datetime_iso'] = $iso;
  }
  else {
    $iso = '';
    $vars['datetime_iso'] = '';
  }

  $vars['content_header_attributes_array']['class'][] = 'branding-elements';
  $vars['content_header_attributes_array']['role'][] = 'banner';
}
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.