Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit dc5b0ef

Browse files
muschpuschjojonaloha
muschpusch
authored andcommitted
Issue #2337481 by muschpusch, jojonaloha: Fixed update entityqueue.api.php.
1 parent d06df9d commit dc5b0ef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

entityqueue.api.php

+20
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@
1010
* @{
1111
*/
1212

13+
/**
14+
* This hook is needed to allow modules to provide their own queues.
15+
*
16+
* If you do this, CTools will look for default queues in
17+
* <modulename>.entityqueue_default.inc
18+
*
19+
* @see hook_entityqueue_default_queues()
20+
*
21+
* @return array
22+
* An associative array containing the entityqueue version.
23+
*/
24+
function hook_entityqueue_api($module = NULL, $api = NULL) {
25+
if ($module == 'entityqueue' && $api == 'entityqueue_default') {
26+
return array('version' => '1');
27+
}
28+
}
29+
1330
/**
1431
* This hook allows modules to provide their own queues.
1532
*
@@ -25,12 +42,15 @@ function hook_entityqueue_default_queues() {
2542
$queue->name = 'featured_articles';
2643
$queue->label = 'Featured articles';
2744
$queue->handler = 'simple';
45+
// if multilingual
46+
$queue->language = 'en';
2847
$queue->target_type = 'node';
2948
$queue->settings = array(
3049
'target_bundles' => array(),
3150
'min_size' => 0,
3251
'max_size' => 0,
3352
'subqueue_label' => '',
53+
'act_as_queue' => 1,
3454
);
3555
$queues['featured_articles'] = $queue;
3656

0 commit comments

Comments
 (0)