Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3cd6a773
Commit
3cd6a773
authored
Feb 27, 2010
by
Dries
Browse files
- Patch
#718648
by chx, robeano: hook_cron_queue_info_alter() is not documented.
parent
a9286dd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.api.php
View file @
3cd6a773
...
...
@@ -383,15 +383,33 @@ function hook_cron() {
* worker in seconds. Defaults to 15.
*
* @see hook_cron()
* @see hook_cron_queue_info_alter()
*/
function
hook_cron_queue_info
()
{
$queues
[
'aggregator_feeds'
]
=
array
(
'worker callback'
=>
'aggregator_refresh'
,
'time'
=>
15
,
'time'
=>
60
,
);
return
$queues
;
}
/**
* Alter cron queue information before cron runs.
*
* Called by drupal_run_cron() to allow modules to alter cron queue settings
* before any jobs are processesed.
*
* @param array $queues
* An array of cron queue information.
*
* @see hook_cron_queue_info()
*/
function
hook_cron_queue_info_alter
(
&
$queues
)
{
// This site has many feeds so let's spend 90 seconds on each cron run
// updating feeds instead of the default 60.
$queues
[
'aggregator_feeds'
][
'time'
]
=
90
;
}
/**
* Allows modules to declare their own Forms API element types and specify their
* default values.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment