updated home V2 feature
This commit is contained in:
parent
70151f23e1
commit
2ffa37fefa
@ -4,6 +4,7 @@ package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = entity
|
||||
dependencies[] = features
|
||||
dependencies[] = materio_publications
|
||||
dependencies[] = menu
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = panels
|
||||
@ -19,4 +20,5 @@ features[menu_custom][] = menu-home-v2
|
||||
features[page_manager_pages][] = home_v2
|
||||
features[panels_mini][] = news_home_v2
|
||||
features[views_view][] = news_home_v2
|
||||
features[views_view][] = publication_home_v2
|
||||
project path = sites/all/modules/features
|
||||
|
@ -95,14 +95,14 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$display->content['new-78b5df28-c9fd-4904-8910-aa1b96c60e35'] = $pane;
|
||||
$display->panels['middle'][0] = 'new-78b5df28-c9fd-4904-8910-aa1b96c60e35';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-bb3c68ac-685c-4b2b-9725-a3bceb1bca0e';
|
||||
$pane->pid = 'new-c0f80278-c595-4c40-bcec-11063eb6fac5';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'node';
|
||||
$pane->subtype = 'node';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'nid' => '12993',
|
||||
'nid' => '13051',
|
||||
'links' => 1,
|
||||
'leave_node_title' => 0,
|
||||
'identifier' => 'showroom',
|
||||
@ -120,21 +120,21 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$pane->uuid = 'bb3c68ac-685c-4b2b-9725-a3bceb1bca0e';
|
||||
$display->content['new-bb3c68ac-685c-4b2b-9725-a3bceb1bca0e'] = $pane;
|
||||
$display->panels['middle'][1] = 'new-bb3c68ac-685c-4b2b-9725-a3bceb1bca0e';
|
||||
$pane->uuid = 'c0f80278-c595-4c40-bcec-11063eb6fac5';
|
||||
$display->content['new-c0f80278-c595-4c40-bcec-11063eb6fac5'] = $pane;
|
||||
$display->panels['middle'][1] = 'new-c0f80278-c595-4c40-bcec-11063eb6fac5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-ce815ec9-1417-496b-8bb3-20ba21a41885';
|
||||
$pane->pid = 'new-71badc43-2232-4c2f-b454-e3be80726a22';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'node';
|
||||
$pane->subtype = 'node';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'nid' => '12994',
|
||||
'nid' => '13052',
|
||||
'links' => 1,
|
||||
'leave_node_title' => 0,
|
||||
'identifier' => 'bdd',
|
||||
'identifier' => 'database',
|
||||
'build_mode' => 'teaser',
|
||||
'link_node_title' => 1,
|
||||
'override_title' => 0,
|
||||
@ -149,9 +149,9 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$pane->uuid = 'ce815ec9-1417-496b-8bb3-20ba21a41885';
|
||||
$display->content['new-ce815ec9-1417-496b-8bb3-20ba21a41885'] = $pane;
|
||||
$display->panels['middle'][2] = 'new-ce815ec9-1417-496b-8bb3-20ba21a41885';
|
||||
$pane->uuid = '71badc43-2232-4c2f-b454-e3be80726a22';
|
||||
$display->content['new-71badc43-2232-4c2f-b454-e3be80726a22'] = $pane;
|
||||
$display->panels['middle'][2] = 'new-71badc43-2232-4c2f-b454-e3be80726a22';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3b6cc0fd-a06a-403a-841e-404ea57fe234';
|
||||
$pane->panel = 'middle';
|
||||
@ -176,14 +176,14 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$display->content['new-3b6cc0fd-a06a-403a-841e-404ea57fe234'] = $pane;
|
||||
$display->panels['middle'][3] = 'new-3b6cc0fd-a06a-403a-841e-404ea57fe234';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-aadd5c97-469b-4d53-9419-98e28abdacec';
|
||||
$pane->pid = 'new-e5d39cf0-472b-4779-9d31-a1548fe86bc7';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'node';
|
||||
$pane->subtype = 'node';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'nid' => '12995',
|
||||
'nid' => '13053',
|
||||
'links' => 1,
|
||||
'leave_node_title' => 0,
|
||||
'identifier' => 'formations',
|
||||
@ -201,18 +201,18 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$pane->uuid = 'aadd5c97-469b-4d53-9419-98e28abdacec';
|
||||
$display->content['new-aadd5c97-469b-4d53-9419-98e28abdacec'] = $pane;
|
||||
$display->panels['middle'][4] = 'new-aadd5c97-469b-4d53-9419-98e28abdacec';
|
||||
$pane->uuid = 'e5d39cf0-472b-4779-9d31-a1548fe86bc7';
|
||||
$display->content['new-e5d39cf0-472b-4779-9d31-a1548fe86bc7'] = $pane;
|
||||
$display->panels['middle'][4] = 'new-e5d39cf0-472b-4779-9d31-a1548fe86bc7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-93261157-ef9d-4480-b6b7-3e504d24cdba';
|
||||
$pane->pid = 'new-9718c81e-6055-4e4e-a0e5-3796d58c6cbe';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'node';
|
||||
$pane->subtype = 'node';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'nid' => '12996',
|
||||
'nid' => '13054',
|
||||
'links' => 1,
|
||||
'leave_node_title' => 0,
|
||||
'identifier' => 'services',
|
||||
@ -230,9 +230,28 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
$pane->extras = array();
|
||||
$pane->position = 5;
|
||||
$pane->locks = array();
|
||||
$pane->uuid = '93261157-ef9d-4480-b6b7-3e504d24cdba';
|
||||
$display->content['new-93261157-ef9d-4480-b6b7-3e504d24cdba'] = $pane;
|
||||
$display->panels['middle'][5] = 'new-93261157-ef9d-4480-b6b7-3e504d24cdba';
|
||||
$pane->uuid = '9718c81e-6055-4e4e-a0e5-3796d58c6cbe';
|
||||
$display->content['new-9718c81e-6055-4e4e-a0e5-3796d58c6cbe'] = $pane;
|
||||
$display->panels['middle'][5] = 'new-9718c81e-6055-4e4e-a0e5-3796d58c6cbe';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-639eb2c7-bf5d-4920-b1bb-c33d8f72a650';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'publication_home_v2-panel_pane_1';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array();
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 6;
|
||||
$pane->locks = array();
|
||||
$pane->uuid = '639eb2c7-bf5d-4920-b1bb-c33d8f72a650';
|
||||
$display->content['new-639eb2c7-bf5d-4920-b1bb-c33d8f72a650'] = $pane;
|
||||
$display->panels['middle'][6] = 'new-639eb2c7-bf5d-4920-b1bb-c33d8f72a650';
|
||||
$display->hide_title = PANELS_TITLE_NONE;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
|
@ -74,7 +74,8 @@ function materio_home_v2_views_default_views() {
|
||||
|
||||
/* Display: News */
|
||||
$handler = $view->new_display('panel_pane', 'News', 'panel_pane_1');
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['pane_category']['name'] = 'home v2';
|
||||
$handler->display->display_options['pane_category']['weight'] = '0';
|
||||
|
||||
/* Display: daily */
|
||||
$handler = $view->new_display('panel_pane', 'daily', 'panel_pane_2');
|
||||
@ -128,7 +129,8 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['filters']['status_1']['value'] = array(
|
||||
2 => '2',
|
||||
);
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['pane_category']['name'] = 'home v2';
|
||||
$handler->display->display_options['pane_category']['weight'] = '0';
|
||||
$translatables['news_home_v2'] = array(
|
||||
t('Master'),
|
||||
t('News'),
|
||||
@ -138,10 +140,88 @@ function materio_home_v2_views_default_views() {
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Volets de vue'),
|
||||
t('home v2'),
|
||||
t('daily'),
|
||||
);
|
||||
$export['news_home_v2'] = $view;
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'publication_home_v2';
|
||||
$view->description = '';
|
||||
$view->tag = 'default';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Publication home v2';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'some';
|
||||
$handler->display->display_options['pager']['options']['items_per_page'] = '3';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'teaser';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'publication' => 'publication',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['value'] = array(
|
||||
3 => '3',
|
||||
);
|
||||
|
||||
/* Display: Publications */
|
||||
$handler = $view->new_display('panel_pane', 'Publications', 'panel_pane_1');
|
||||
$handler->display->display_options['pane_category']['name'] = 'Home v2';
|
||||
$handler->display->display_options['pane_category']['weight'] = '0';
|
||||
$translatables['publication_home_v2'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Publications'),
|
||||
t('Home v2'),
|
||||
);
|
||||
$export['publication_home_v2'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.field_instance.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_instances().
|
||||
*/
|
||||
function materio_publications_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'node-publication-body'
|
||||
$field_instances['node-publication-body'] = array(
|
||||
'bundle' => 'publication',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'bookmark' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardbig' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardfull' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardmedium' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardsmall' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 0,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'trim_length' => 600,
|
||||
),
|
||||
'type' => 'text_summary_or_trimmed',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'body',
|
||||
'label' => 'Body',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'display_summary' => TRUE,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'text_processing' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 20,
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => 31,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Body');
|
||||
|
||||
return $field_instances;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function materio_publications_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function materio_publications_node_info() {
|
||||
$items = array(
|
||||
'publication' => array(
|
||||
'name' => t('Publication'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
drupal_alter('node_info', $items);
|
||||
return $items;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.user_role.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_roles().
|
||||
*/
|
||||
function materio_publications_user_default_roles() {
|
||||
$roles = array();
|
||||
|
||||
// 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,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
}
|
@ -0,0 +1,296 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.workflow_access.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_workflow_access_features_default_settings().
|
||||
*/
|
||||
function materio_publications_workflow_access_features_default_settings() {
|
||||
$workflows = array();
|
||||
|
||||
$workflows['Publication'] = array();
|
||||
$workflows['Publication']['(creation)'] = array();
|
||||
$workflows['Publication']['(creation)']['administrator'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['root'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['utilisateur anonyme'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['utilisateur authentifié'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Unverified'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Utilisateur'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Student'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Adhérent'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Premium'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['(creation)']['Contact opérationnel'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé'] = array();
|
||||
$workflows['Publication']['Importé']['administrator'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Importé']['root'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Importé']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Importé']['utilisateur anonyme'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['utilisateur authentifié'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Unverified'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Utilisateur'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Student'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Adhérent'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Premium'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Importé']['Contact opérationnel'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité'] = array();
|
||||
$workflows['Publication']['Édité']['Student'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['Adhérent'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['Premium'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['administrator'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Édité']['root'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Édité']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Édité']['utilisateur anonyme'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['utilisateur authentifié'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['Unverified'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['Utilisateur'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Édité']['Contact opérationnel'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué'] = array();
|
||||
$workflows['Publication']['Masqué']['administrator'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['root'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['utilisateur anonyme'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['utilisateur authentifié'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Unverified'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Utilisateur'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Student'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Adhérent'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Premium'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Masqué']['Contact opérationnel'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié'] = array();
|
||||
$workflows['Publication']['Publié']['utilisateur anonyme'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['utilisateur authentifié'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Unverified'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Utilisateur'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Student'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Adhérent'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Premium'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['Contact opérationnel'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['administrator'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Publié']['root'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Publié']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
|
||||
return $workflows;
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
name = Materio publications
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = materio_subscriptions
|
||||
dependencies[] = node
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = text
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[field_instance][] = node-publication-body
|
||||
features[node][] = publication
|
||||
features[user_role][] = utilisateur anonyme
|
||||
features[user_role][] = utilisateur authentifié
|
||||
features[variable][] = language_content_type_publication
|
||||
features[variable][] = menu_options_publication
|
||||
features[variable][] = menu_parent_publication
|
||||
features[variable][] = node_options_publication
|
||||
features[variable][] = node_preview_publication
|
||||
features[variable][] = node_submitted_publication
|
||||
features[workflow_access][] = Publication
|
||||
features_exclude[dependencies][workflow_access] = workflow_access
|
||||
features_exclude[workflow][Publication] = Publication
|
||||
features_exclude[user_role][Unverified] = Unverified
|
||||
features_exclude[user_role][Student] = Student
|
||||
features_exclude[user_role][Contact opérationnel] = Contact opérationnel
|
||||
features_exclude[user_role][administrator] = administrator
|
||||
features_exclude[user_role][root] = root
|
||||
project path = sites/all/modules/features
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the Materio publications feature.
|
||||
*/
|
||||
|
||||
include_once 'materio_publications.features.inc';
|
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function materio_publications_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 = 'language_content_type_publication';
|
||||
$strongarm->value = '4';
|
||||
$export['language_content_type_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 = 'menu_options_publication';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_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 = 'menu_parent_publication';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_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 = 'node_options_publication';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
);
|
||||
$export['node_options_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 = 'node_preview_publication';
|
||||
$strongarm->value = '1';
|
||||
$export['node_preview_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 = 'node_submitted_publication';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_publication'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user