-
Notifications
You must be signed in to change notification settings - Fork 0
/
dkan_workflow.strongarm.inc
107 lines (101 loc) · 3.75 KB
/
dkan_workflow.strongarm.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* @file
* dkan_workflow.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function dkan_workflow_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_badges_tab_callbacks';
$strongarm->value = array(
'admin/workbench/drafts' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_my_drafts_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'my_drafts_badge',
),
),
'admin/workbench/needs-review' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_needs_review_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'needs_review_badge',
),
),
'admin/workbench/stale-drafts' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_stale_drafts_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'stale_drafts_badge',
),
),
'admin/workbench/stale-reviews' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_stale_reviews_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'stale_reviews_badge',
),
),
'admin/workbench/drafts-active' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_my_drafts_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'my_drafts_badge',
),
),
'admin/workbench/drafts-stale' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_stale_drafts_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'stale_drafts_badge',
),
),
'admin/workbench/needs-review-stale' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_stale_reviews_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'stale_reviews_badge',
),
),
'admin/workbench/needs-review-active' => array(
'callback' => 'menu_badges_execute_view',
'key' => 'views_workbench_moderation_needs_review_badge',
'arguments' => array(
'view_name' => 'workbench_moderation',
'view_display_id' => 'needs_review_badge',
),
),
);
$export['menu_badges_tab_callbacks'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'workbench_email_queue_mail';
$strongarm->value = 0;
$export['workbench_email_queue_mail'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'workbench_moderation_default_state_dataset';
$strongarm->value = 'draft';
$export['workbench_moderation_default_state_dataset'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'workbench_moderation_default_state_resource';
$strongarm->value = 'draft';
$export['workbench_moderation_default_state_resource'] = $strongarm;
return $export;
}