commited features for showroom release
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
function materio_publications_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_couverture'
|
||||
// Exported field_base: 'field_couverture'.
|
||||
$field_bases['field_couverture'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
@@ -39,7 +39,7 @@ function materio_publications_field_default_field_bases() {
|
||||
'type' => 'image',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_weight'
|
||||
// Exported field_base: 'field_weight'.
|
||||
$field_bases['field_weight'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
|
@@ -10,7 +10,7 @@
|
||||
function materio_publications_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'node-publication-body'
|
||||
// Exported field_instance: 'node-publication-body'.
|
||||
$field_instances['node-publication-body'] = array(
|
||||
'bundle' => 'publication',
|
||||
'default_value' => NULL,
|
||||
@@ -91,7 +91,7 @@ function materio_publications_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-publication-field_couverture'
|
||||
// Exported field_instance: 'node-publication-field_couverture'.
|
||||
$field_instances['node-publication-field_couverture'] = array(
|
||||
'bundle' => 'publication',
|
||||
'deleted' => 0,
|
||||
@@ -182,7 +182,7 @@ function materio_publications_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-publication-field_weight'
|
||||
// Exported field_instance: 'node-publication-field_weight'.
|
||||
$field_instances['node-publication-field_weight'] = array(
|
||||
'bundle' => 'publication',
|
||||
'default_value' => NULL,
|
||||
|
@@ -55,144 +55,3 @@ function materio_publications_node_info() {
|
||||
drupal_alter('node_info', $items);
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_workflow_default_workflows().
|
||||
*/
|
||||
function materio_publications_workflow_default_workflows() {
|
||||
$workflows = array();
|
||||
|
||||
// Exported workflow: Publication
|
||||
$workflows['Publication'] = array(
|
||||
'name' => 'Publication',
|
||||
'tab_roles' => '',
|
||||
'options' => 'a:4:{s:16:"comment_log_node";i:0;s:15:"comment_log_tab";i:0;s:13:"name_as_title";i:0;s:12:"watchdog_log";i:1;}',
|
||||
'states' => array(
|
||||
0 => array(
|
||||
'state' => '(creation)',
|
||||
'weight' => -50,
|
||||
'sysid' => 1,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
1 => array(
|
||||
'state' => 'Importé',
|
||||
'weight' => 0,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
2 => array(
|
||||
'state' => 'Édité',
|
||||
'weight' => 1,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
3 => array(
|
||||
'state' => 'Masqué',
|
||||
'weight' => 2,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
4 => array(
|
||||
'state' => 'Publié',
|
||||
'weight' => 3,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
),
|
||||
'transitions' => array(
|
||||
0 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'Masqué',
|
||||
),
|
||||
1 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
2 => array(
|
||||
'roles' => 'root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'Importé',
|
||||
),
|
||||
3 => array(
|
||||
'roles' => 'administrator,root',
|
||||
'state' => 'Importé',
|
||||
'target_state' => 'Édité',
|
||||
),
|
||||
4 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Importé',
|
||||
'target_state' => 'Masqué',
|
||||
),
|
||||
5 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Importé',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
6 => array(
|
||||
'roles' => 'root',
|
||||
'state' => 'Édité',
|
||||
'target_state' => 'Importé',
|
||||
),
|
||||
7 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Édité',
|
||||
'target_state' => 'Masqué',
|
||||
),
|
||||
8 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Édité',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
9 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Masqué',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
10 => array(
|
||||
'roles' => 'root',
|
||||
'state' => 'Masqué',
|
||||
'target_state' => 'Importé',
|
||||
),
|
||||
11 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Masqué',
|
||||
'target_state' => 'Édité',
|
||||
),
|
||||
12 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Publié',
|
||||
'target_state' => 'Masqué',
|
||||
),
|
||||
13 => array(
|
||||
'roles' => 'root',
|
||||
'state' => 'Publié',
|
||||
'target_state' => 'Importé',
|
||||
),
|
||||
14 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Publié',
|
||||
'target_state' => 'Édité',
|
||||
),
|
||||
),
|
||||
'node_types' => array(
|
||||
0 => 'breve',
|
||||
1 => 'company',
|
||||
2 => 'didactique',
|
||||
3 => 'faq',
|
||||
4 => 'looping_embed_video',
|
||||
5 => 'materiau',
|
||||
6 => 'page',
|
||||
7 => 'publication',
|
||||
8 => 'simplenews',
|
||||
),
|
||||
);
|
||||
|
||||
return $workflows;
|
||||
}
|
||||
|
@@ -31,31 +31,19 @@ function materio_publications_user_default_roles() {
|
||||
// Exported role: Utilisateur Alpha Tester.
|
||||
$roles['Utilisateur Alpha Tester'] = array(
|
||||
'name' => 'Utilisateur Alpha Tester',
|
||||
'weight' => 4,
|
||||
'weight' => 5,
|
||||
);
|
||||
|
||||
// Exported role: administrator.
|
||||
$roles['administrator'] = array(
|
||||
'name' => 'administrator',
|
||||
'weight' => 8,
|
||||
'weight' => 11,
|
||||
);
|
||||
|
||||
// Exported role: root.
|
||||
$roles['root'] = array(
|
||||
'name' => 'root',
|
||||
'weight' => 9,
|
||||
);
|
||||
|
||||
// Exported role: utilisateur anonyme.
|
||||
$roles['utilisateur anonyme'] = array(
|
||||
'name' => 'utilisateur anonyme',
|
||||
'weight' => 0,
|
||||
);
|
||||
|
||||
// Exported role: utilisateur authentifié.
|
||||
$roles['utilisateur authentifié'] = array(
|
||||
'name' => 'utilisateur authentifié',
|
||||
'weight' => 1,
|
||||
'weight' => 12,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
|
@@ -1,10 +1,7 @@
|
||||
name = Materio publications
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = image
|
||||
dependencies[] = list
|
||||
dependencies[] = materio_content_types
|
||||
dependencies[] = metatag
|
||||
dependencies[] = node
|
||||
@@ -32,8 +29,6 @@ features[user_role][] = Unverified
|
||||
features[user_role][] = Utilisateur Alpha Tester
|
||||
features[user_role][] = administrator
|
||||
features[user_role][] = root
|
||||
features[user_role][] = utilisateur anonyme
|
||||
features[user_role][] = utilisateur authentifié
|
||||
features[variable][] = additional_settings__active_tab_publication
|
||||
features[variable][] = ant_pattern_publication
|
||||
features[variable][] = ant_php_publication
|
||||
@@ -63,10 +58,15 @@ features[variable][] = unique_field_comp_publication
|
||||
features[variable][] = unique_field_fields_publication
|
||||
features[variable][] = unique_field_scope_publication
|
||||
features[variable][] = unique_field_show_matches_publication
|
||||
features[variable][] = workflow_publication
|
||||
features[workflow][] = Publication
|
||||
features[workflow_access][] = Publication
|
||||
features_exclude[dependencies][materio_subscriptions] = materio_subscriptions
|
||||
features_exclude[dependencies][options] = options
|
||||
features_exclude[dependencies][materio_page_title] = materio_page_title
|
||||
features_exclude[dependencies][field_permissions] = field_permissions
|
||||
features_exclude[dependencies][image] = image
|
||||
features_exclude[dependencies][list] = list
|
||||
features_exclude[user_permission][create field_weight] = create field_weight
|
||||
features_exclude[user_permission][edit own field_weight] = edit own field_weight
|
||||
features_exclude[user_permission][edit field_weight] = edit field_weight
|
||||
features_exclude[user_permission][view own field_weight] = view own field_weight
|
||||
features_exclude[user_permission][view field_weight] = view field_weight
|
||||
project path = sites/all/modules/features
|
||||
|
@@ -370,14 +370,5 @@ function materio_publications_strongarm() {
|
||||
$strongarm->value = array();
|
||||
$export['unique_field_show_matches_publication'] = $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_publication';
|
||||
$strongarm->value = array(
|
||||
0 => 'node',
|
||||
);
|
||||
$export['workflow_publication'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
Reference in New Issue
Block a user