This repository was archived by the owner on Apr 18, 2024. It is now read-only.
File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 10
10
* @{
11
11
*/
12
12
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
+
13
30
/**
14
31
* This hook allows modules to provide their own queues.
15
32
*
@@ -25,12 +42,15 @@ function hook_entityqueue_default_queues() {
25
42
$ queue ->name = 'featured_articles ' ;
26
43
$ queue ->label = 'Featured articles ' ;
27
44
$ queue ->handler = 'simple ' ;
45
+ // if multilingual
46
+ $ queue ->language = 'en ' ;
28
47
$ queue ->target_type = 'node ' ;
29
48
$ queue ->settings = array (
30
49
'target_bundles ' => array (),
31
50
'min_size ' => 0 ,
32
51
'max_size ' => 0 ,
33
52
'subqueue_label ' => '' ,
53
+ 'act_as_queue ' => 1 ,
34
54
);
35
55
$ queues ['featured_articles ' ] = $ queue ;
36
56
You can’t perform that action at this time.
0 commit comments