added workflow strongarm variable to admin feature
This commit is contained in:
parent
3ffbc09c10
commit
6ceb7d6534
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* materio_administration.default_elysia_cron_rules.inc
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_default_elysia_cron_rules().
|
||||||
|
*/
|
||||||
|
function materio_administration_default_elysia_cron_rules() {
|
||||||
|
$cron_rules = array();
|
||||||
|
|
||||||
|
$cron_rule = new stdClass;
|
||||||
|
$cron_rule->disabled = FALSE; /* Edit this to true to make a default cron_rule disabled initially */
|
||||||
|
$cron_rule->api_version = 1;
|
||||||
|
$cron_rule->name = 'workflow_cron';
|
||||||
|
$cron_rule->disable = NULL;
|
||||||
|
$cron_rule->rule = NULL;
|
||||||
|
$cron_rule->weight = NULL;
|
||||||
|
$cron_rule->context = NULL;
|
||||||
|
$cron_rules['workflow_cron'] = $cron_rule;
|
||||||
|
|
||||||
|
return $cron_rules;
|
||||||
|
|
||||||
|
}
|
@ -8,6 +8,9 @@
|
|||||||
* Implements hook_ctools_plugin_api().
|
* Implements hook_ctools_plugin_api().
|
||||||
*/
|
*/
|
||||||
function materio_administration_ctools_plugin_api($module = NULL, $api = NULL) {
|
function materio_administration_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||||
|
if ($module == "elysia_cron" && $api == "default_elysia_cron_rules") {
|
||||||
|
return array("version" => "1");
|
||||||
|
}
|
||||||
if ($module == "strongarm" && $api == "strongarm") {
|
if ($module == "strongarm" && $api == "strongarm") {
|
||||||
return array("version" => "1");
|
return array("version" => "1");
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,24 @@ function materio_administration_user_default_permissions() {
|
|||||||
'module' => 'admin_menu',
|
'module' => 'admin_menu',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Exported permission: 'access workflow summary views'.
|
||||||
|
$permissions['access workflow summary views'] = array(
|
||||||
|
'name' => 'access workflow summary views',
|
||||||
|
'roles' => array(
|
||||||
|
'root' => 'root',
|
||||||
|
),
|
||||||
|
'module' => 'workflow_views',
|
||||||
|
);
|
||||||
|
|
||||||
|
// Exported permission: 'administer workflow'.
|
||||||
|
$permissions['administer workflow'] = array(
|
||||||
|
'name' => 'administer workflow',
|
||||||
|
'roles' => array(
|
||||||
|
'root' => 'root',
|
||||||
|
),
|
||||||
|
'module' => 'workflow_admin_ui',
|
||||||
|
);
|
||||||
|
|
||||||
// Exported permission: 'assign Adhérent role'.
|
// Exported permission: 'assign Adhérent role'.
|
||||||
$permissions['assign Adhérent role'] = array(
|
$permissions['assign Adhérent role'] = array(
|
||||||
'name' => 'assign Adhérent role',
|
'name' => 'assign Adhérent role',
|
||||||
@ -127,5 +145,40 @@ function materio_administration_user_default_permissions() {
|
|||||||
'module' => 'admin_menu',
|
'module' => 'admin_menu',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Exported permission: 'participate in workflow'.
|
||||||
|
$permissions['participate in workflow'] = array(
|
||||||
|
'name' => 'participate in workflow',
|
||||||
|
'roles' => array(
|
||||||
|
'Adhérent' => 'Adhérent',
|
||||||
|
'Contact opérationnel' => 'Contact opérationnel',
|
||||||
|
'Premium' => 'Premium',
|
||||||
|
'Student' => 'Student',
|
||||||
|
'Unverified' => 'Unverified',
|
||||||
|
'Utilisateur' => 'Utilisateur',
|
||||||
|
'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
|
||||||
|
'administrator' => 'administrator',
|
||||||
|
'anonymous user' => 'anonymous user',
|
||||||
|
'authenticated user' => 'authenticated user',
|
||||||
|
'root' => 'root',
|
||||||
|
),
|
||||||
|
'module' => 'workflow_admin_ui',
|
||||||
|
);
|
||||||
|
|
||||||
|
// Exported permission: 'schedule workflow transitions'.
|
||||||
|
$permissions['schedule workflow transitions'] = array(
|
||||||
|
'name' => 'schedule workflow transitions',
|
||||||
|
'roles' => array(
|
||||||
|
'root' => 'root',
|
||||||
|
),
|
||||||
|
'module' => 'workflow',
|
||||||
|
);
|
||||||
|
|
||||||
|
// Exported permission: 'show workflow state form'.
|
||||||
|
$permissions['show workflow state form'] = array(
|
||||||
|
'name' => 'show workflow state form',
|
||||||
|
'roles' => array(),
|
||||||
|
'module' => 'workflow',
|
||||||
|
);
|
||||||
|
|
||||||
return $permissions;
|
return $permissions;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ dependencies[] = admin_menu
|
|||||||
dependencies[] = admin_menu_source
|
dependencies[] = admin_menu_source
|
||||||
dependencies[] = admin_menu_toolbar
|
dependencies[] = admin_menu_toolbar
|
||||||
dependencies[] = ctools
|
dependencies[] = ctools
|
||||||
|
dependencies[] = elysia_cron
|
||||||
dependencies[] = features
|
dependencies[] = features
|
||||||
dependencies[] = menu
|
dependencies[] = menu
|
||||||
dependencies[] = role_delegation
|
dependencies[] = role_delegation
|
||||||
@ -14,10 +15,15 @@ dependencies[] = title
|
|||||||
dependencies[] = views
|
dependencies[] = views
|
||||||
dependencies[] = views_bulk_operations
|
dependencies[] = views_bulk_operations
|
||||||
dependencies[] = views_data_export
|
dependencies[] = views_data_export
|
||||||
|
dependencies[] = workflow
|
||||||
|
dependencies[] = workflow_access
|
||||||
dependencies[] = workflow_actions
|
dependencies[] = workflow_actions
|
||||||
|
dependencies[] = workflow_admin_ui
|
||||||
dependencies[] = workflow_views
|
dependencies[] = workflow_views
|
||||||
|
features[ctools][] = elysia_cron:default_elysia_cron_rules:1
|
||||||
features[ctools][] = strongarm:strongarm:1
|
features[ctools][] = strongarm:strongarm:1
|
||||||
features[ctools][] = views:views_default:3.0
|
features[ctools][] = views:views_default:3.0
|
||||||
|
features[elysia_cron][] = workflow_cron
|
||||||
features[features_api][] = api:2
|
features[features_api][] = api:2
|
||||||
features[menu_custom][] = navigation
|
features[menu_custom][] = navigation
|
||||||
features[menu_links][] = navigation_add-user:admin/people/create
|
features[menu_links][] = navigation_add-user:admin/people/create
|
||||||
@ -44,6 +50,8 @@ features[menu_links][] = navigation_user-account:user
|
|||||||
features[menu_links][] = navigation_users:admin/people
|
features[menu_links][] = navigation_users:admin/people
|
||||||
features[menu_links][] = navigation_users:admin/users
|
features[menu_links][] = navigation_users:admin/users
|
||||||
features[user_permission][] = access administration menu
|
features[user_permission][] = access administration menu
|
||||||
|
features[user_permission][] = access workflow summary views
|
||||||
|
features[user_permission][] = administer workflow
|
||||||
features[user_permission][] = assign Adhérent role
|
features[user_permission][] = assign Adhérent role
|
||||||
features[user_permission][] = assign Contact opérationnel role
|
features[user_permission][] = assign Contact opérationnel role
|
||||||
features[user_permission][] = assign Premium role
|
features[user_permission][] = assign Premium role
|
||||||
@ -55,6 +63,9 @@ features[user_permission][] = assign administrator role
|
|||||||
features[user_permission][] = assign all roles
|
features[user_permission][] = assign all roles
|
||||||
features[user_permission][] = display drupal links
|
features[user_permission][] = display drupal links
|
||||||
features[user_permission][] = flush caches
|
features[user_permission][] = flush caches
|
||||||
|
features[user_permission][] = participate in workflow
|
||||||
|
features[user_permission][] = schedule workflow transitions
|
||||||
|
features[user_permission][] = show workflow state form
|
||||||
features[variable][] = admin_menu_cache_client
|
features[variable][] = admin_menu_cache_client
|
||||||
features[variable][] = admin_menu_devel_modules_enabled
|
features[variable][] = admin_menu_devel_modules_enabled
|
||||||
features[variable][] = admin_menu_devel_modules_skip
|
features[variable][] = admin_menu_devel_modules_skip
|
||||||
@ -71,6 +82,19 @@ features[variable][] = content_type_extras_title_hide_didactique
|
|||||||
features[variable][] = content_type_extras_title_hide_materiau
|
features[variable][] = content_type_extras_title_hide_materiau
|
||||||
features[variable][] = title_node
|
features[variable][] = title_node
|
||||||
features[variable][] = title_taxonomy_term
|
features[variable][] = title_taxonomy_term
|
||||||
|
features[variable][] = workflow_access_priority
|
||||||
|
features[variable][] = workflow_breve
|
||||||
|
features[variable][] = workflow_company
|
||||||
|
features[variable][] = workflow_contact_operationnel
|
||||||
|
features[variable][] = workflow_didactique
|
||||||
|
features[variable][] = workflow_faq
|
||||||
|
features[variable][] = workflow_looping_embed_video
|
||||||
|
features[variable][] = workflow_materiau
|
||||||
|
features[variable][] = workflow_page
|
||||||
|
features[variable][] = workflow_panel
|
||||||
|
features[variable][] = workflow_product
|
||||||
|
features[variable][] = workflow_simplenews
|
||||||
|
features[variable][] = workflow_webform
|
||||||
features[views_view][] = admin_content_node
|
features[views_view][] = admin_content_node
|
||||||
features[views_view][] = admin_contents
|
features[views_view][] = admin_contents
|
||||||
features[views_view][] = admin_peoples
|
features[views_view][] = admin_peoples
|
||||||
|
@ -151,5 +151,120 @@ function materio_administration_strongarm() {
|
|||||||
);
|
);
|
||||||
$export['title_taxonomy_term'] = $strongarm;
|
$export['title_taxonomy_term'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_access_priority';
|
||||||
|
$strongarm->value = '0';
|
||||||
|
$export['workflow_access_priority'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_breve';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_breve'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_company';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_company'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_contact_operationnel';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_contact_operationnel'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_didactique';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_didactique'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_faq';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_faq'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_looping_embed_video';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_looping_embed_video'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_materiau';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_materiau'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_page';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_page'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_panel';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_panel'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_product';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_product'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_simplenews';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_simplenews'] = $strongarm;
|
||||||
|
|
||||||
|
$strongarm = new stdClass();
|
||||||
|
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||||
|
$strongarm->api_version = 1;
|
||||||
|
$strongarm->name = 'workflow_webform';
|
||||||
|
$strongarm->value = array(
|
||||||
|
0 => 'node',
|
||||||
|
);
|
||||||
|
$export['workflow_webform'] = $strongarm;
|
||||||
|
|
||||||
return $export;
|
return $export;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user