diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
commit | a539b0e00dedddfea36d4a96b788e42923056a78 (patch) | |
tree | fcf4876cbfa5abef45c40e134b99bc30944fde14 /modules/system/system.module | |
parent | 2431df84a2a6afb07a5214ef748cded72ac87947 (diff) | |
download | brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.gz brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.bz2 |
- Patch by #565496 by dropcube, pwolanin: changed Allow dynamic attaching of other types of stuff to render() structures.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 70026bcdd..4c395d9d6 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -3101,8 +3101,10 @@ function system_page_build(&$page) { if (system_run_cron_image_access()) { $page['page_bottom']['run_cron'] = array( // Trigger cron run via AJAX. - '#attached_js' => array( - '(function($){ $.get(' . drupal_to_js(url('system/run-cron-image')) . '); })(jQuery);' => array('type' => 'inline', 'scope' => 'header'), + '#attached' => array( + 'js' => array( + '(function($){ $.get(' . drupal_to_js(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', 'system/run-cron-image'), |