system_page_build
- Versions
- 7
system_page_build(&$page)
Implements hook_page_build().
Code
modules/system/system.module, line 3066
<?php
function system_page_build(&$page) {
// Automatic cron runs.
// @see system_run_cron_image()
if (system_run_cron_image_access()) {
$page['page_bottom']['run_cron'] = array(
// Trigger cron run via AJAX.
'#attached' => array(
'js' => array(
'(function($){ $.get(' . drupal_json_encode(url('system/run-cron-image')) . '); })(jQuery);' => array('type' => 'inline', 'scope' => 'header'),
),
),
// Trigger cron run for clients not supporting JavaScript (fall-back).
'#markup' => theme('system_run_cron_image', array('image_path' => 'system/run-cron-image')),
);
}
}
?>Login or register to post comments 