created content types (and feature)
updated video filter
This commit is contained in:
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.features.field_base.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_bases().
|
||||
*/
|
||||
function clameurs_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_description'
|
||||
$field_bases['field_description'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_description',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text_long',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_doc'
|
||||
$field_bases['field_doc'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_doc',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'taxonomy_term_data' => array(
|
||||
'columns' => array(
|
||||
'target_id' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'handler' => 'views',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => 'entityreference_1',
|
||||
'view_name' => 'actions_filter',
|
||||
),
|
||||
),
|
||||
'target_type' => 'taxonomy_term',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'entityreference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_ecouter'
|
||||
$field_bases['field_ecouter'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_ecouter',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'actions',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_episodes'
|
||||
$field_bases['field_episodes'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => -1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_episodes',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'node' => array(
|
||||
'columns' => array(
|
||||
'target_id' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'handler' => 'base',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'sort' => array(
|
||||
'type' => 'none',
|
||||
),
|
||||
'target_bundles' => array(
|
||||
'episode' => 'episode',
|
||||
),
|
||||
),
|
||||
'target_type' => 'node',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'entityreference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_habiter'
|
||||
$field_bases['field_habiter'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_habiter',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'taxonomy_term_data' => array(
|
||||
'columns' => array(
|
||||
'target_id' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'handler' => 'base',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'sort' => array(
|
||||
'type' => 'none',
|
||||
),
|
||||
'target_bundles' => array(
|
||||
'actions' => 'actions',
|
||||
),
|
||||
),
|
||||
'target_type' => 'taxonomy_term',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'entityreference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_thematique'
|
||||
$field_bases['field_thematique'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_thematique',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'node' => array(
|
||||
'columns' => array(
|
||||
'target_id' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'handler' => 'base',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'sort' => array(
|
||||
'type' => 'none',
|
||||
),
|
||||
'target_bundles' => array(
|
||||
'thematique' => 'thematique',
|
||||
),
|
||||
),
|
||||
'target_type' => 'node',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'entityreference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_video'
|
||||
$field_bases['field_video'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_video',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(
|
||||
'height' => array(
|
||||
0 => 'height',
|
||||
),
|
||||
'width' => array(
|
||||
0 => 'width',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'video_filter',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
||||
@@ -0,0 +1,691 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.features.field_instance.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_instances().
|
||||
*/
|
||||
function clameurs_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'node-documentair-body'
|
||||
$field_instances['node-documentair-body'] = array(
|
||||
'bundle' => 'documentair',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'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' => 5,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-documentair-field_description'
|
||||
$field_instances['node-documentair-field_description'] = array(
|
||||
'bundle' => 'documentair',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_description',
|
||||
'label' => 'Description',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'linkit' => array(
|
||||
'button_text' => 'Recherche',
|
||||
'enable' => 0,
|
||||
'profile' => '',
|
||||
),
|
||||
'text_processing' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 7,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-documentair-field_doc'
|
||||
$field_instances['node-documentair-field_doc'] = array(
|
||||
'bundle' => 'documentair',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_doc',
|
||||
'label' => 'Doc',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'behaviors' => array(
|
||||
'taxonomy-index' => array(
|
||||
'status' => TRUE,
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-documentair-field_thematique'
|
||||
$field_instances['node-documentair-field_thematique'] = array(
|
||||
'bundle' => 'documentair',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_thematique',
|
||||
'label' => 'Thématique',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete',
|
||||
'weight' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-documentair-field_video'
|
||||
$field_instances['node-documentair-field_video'] = array(
|
||||
'bundle' => 'documentair',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter_field_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_video',
|
||||
'label' => 'Video',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'autoplay' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'max_height' => 400,
|
||||
'max_width' => 400,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter',
|
||||
'weight' => 6,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-episode-body'
|
||||
$field_instances['node-episode-body'] = array(
|
||||
'bundle' => 'episode',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'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' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-episode-field_description'
|
||||
$field_instances['node-episode-field_description'] = array(
|
||||
'bundle' => 'episode',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_description',
|
||||
'label' => 'Description',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'linkit' => array(
|
||||
'button_text' => 'Recherche',
|
||||
'enable' => 0,
|
||||
'profile' => '',
|
||||
),
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 4,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-episode-field_habiter'
|
||||
$field_instances['node-episode-field_habiter'] = array(
|
||||
'bundle' => 'episode',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_habiter',
|
||||
'label' => 'Habiter',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'behaviors' => array(
|
||||
'taxonomy-index' => array(
|
||||
'status' => TRUE,
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'field_extrawidgets',
|
||||
'settings' => array(
|
||||
'display_empty' => 0,
|
||||
'formatter' => 'entityreference_label',
|
||||
'formatter_settings' => array(
|
||||
'link' => 0,
|
||||
),
|
||||
),
|
||||
'type' => 'field_extrawidgets_read_only',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-episode-field_thematique'
|
||||
$field_instances['node-episode-field_thematique'] = array(
|
||||
'bundle' => 'episode',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_thematique',
|
||||
'label' => 'Thématique',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete',
|
||||
'weight' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-episode-field_video'
|
||||
$field_instances['node-episode-field_video'] = array(
|
||||
'bundle' => 'episode',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter_field_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_video',
|
||||
'label' => 'Video',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'autoplay' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'max_height' => 400,
|
||||
'max_width' => 400,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-thematique-body'
|
||||
$field_instances['node-thematique-body'] = array(
|
||||
'bundle' => 'thematique',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'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' => 4,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-thematique-field_description'
|
||||
$field_instances['node-thematique-field_description'] = array(
|
||||
'bundle' => 'thematique',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_description',
|
||||
'label' => 'Description',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'linkit' => array(
|
||||
'button_text' => 'Recherche',
|
||||
'enable' => 0,
|
||||
'profile' => '',
|
||||
),
|
||||
'text_processing' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 6,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-thematique-field_ecouter'
|
||||
$field_instances['node-thematique-field_ecouter'] = array(
|
||||
'bundle' => 'thematique',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_ecouter',
|
||||
'label' => 'Écouter',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'field_extrawidgets',
|
||||
'settings' => array(
|
||||
'display_empty' => 0,
|
||||
'formatter' => 'taxonomy_term_reference_plain',
|
||||
'formatter_settings' => array(),
|
||||
),
|
||||
'type' => 'field_extrawidgets_read_only',
|
||||
'weight' => 9,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-thematique-field_episodes'
|
||||
$field_instances['node-thematique-field_episodes'] = array(
|
||||
'bundle' => 'thematique',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_episodes',
|
||||
'label' => 'Épisodes',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete',
|
||||
'weight' => 7,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-thematique-field_video'
|
||||
$field_instances['node-thematique-field_video'] = array(
|
||||
'bundle' => 'thematique',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter_field_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_video',
|
||||
'label' => 'Video',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'autoplay' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'max_height' => 400,
|
||||
'max_width' => 400,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'video_filter_field',
|
||||
'settings' => array(),
|
||||
'type' => 'video_filter',
|
||||
'weight' => 5,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Body');
|
||||
t('Description');
|
||||
t('Doc');
|
||||
t('Habiter');
|
||||
t('Thématique');
|
||||
t('Video');
|
||||
t('Écouter');
|
||||
t('Épisodes');
|
||||
|
||||
return $field_instances;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function clameurs_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function clameurs_node_info() {
|
||||
$items = array(
|
||||
'documentair' => array(
|
||||
'name' => t('Documentair'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre'),
|
||||
'help' => '',
|
||||
),
|
||||
'episode' => array(
|
||||
'name' => t('Épisode'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre'),
|
||||
'help' => '',
|
||||
),
|
||||
'thematique' => array(
|
||||
'name' => t('Thematique'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
drupal_alter('node_info', $items);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function clameurs_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'actions' => array(
|
||||
'name' => 'Actions',
|
||||
'machine_name' => 'actions',
|
||||
'description' => '',
|
||||
'hierarchy' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'weight' => 0,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function clameurs_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_episodes|node|thematique|form';
|
||||
$field_group->group_name = 'group_episodes';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'thematique';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Épisodes',
|
||||
'weight' => '9',
|
||||
'children' => array(
|
||||
0 => 'field_episodes',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-episodes field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_episodes|node|thematique|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_htabs|node|documentair|form';
|
||||
$field_group->group_name = 'group_htabs';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'documentair';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'htabs',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'group_texte',
|
||||
1 => 'group_video',
|
||||
),
|
||||
'format_type' => 'htabs',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-htabs field-group-htabs',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_htabs|node|documentair|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_htabs|node|episode|form';
|
||||
$field_group->group_name = 'group_htabs';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'episode';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'htabs',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'group_texte',
|
||||
1 => 'group_video',
|
||||
),
|
||||
'format_type' => 'htabs',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-htabs field-group-htabs',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_htabs|node|episode|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_htabs|node|thematique|form';
|
||||
$field_group->group_name = 'group_htabs';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'thematique';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'htabs',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'group_video',
|
||||
1 => 'group_texte',
|
||||
2 => 'group_episodes',
|
||||
),
|
||||
'format_type' => 'htabs',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-htabs field-group-htabs',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_htabs|node|thematique|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_texte|node|documentair|form';
|
||||
$field_group->group_name = 'group_texte';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'documentair';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'body',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-texte field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_texte|node|documentair|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_texte|node|episode|form';
|
||||
$field_group->group_name = 'group_texte';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'episode';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '9',
|
||||
'children' => array(
|
||||
0 => 'body',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-texte field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_texte|node|episode|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_texte|node|thematique|form';
|
||||
$field_group->group_name = 'group_texte';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'thematique';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '7',
|
||||
'children' => array(
|
||||
0 => 'body',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'collapsible',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-texte field-group-fieldset',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_texte|node|thematique|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_video|node|documentair|form';
|
||||
$field_group->group_name = 'group_video';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'documentair';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Video',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_video',
|
||||
1 => 'field_description',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-video field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_video|node|documentair|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_video|node|episode|form';
|
||||
$field_group->group_name = 'group_video';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'episode';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Video',
|
||||
'weight' => '10',
|
||||
'children' => array(
|
||||
0 => 'field_video',
|
||||
1 => 'field_description',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-video field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_video|node|episode|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_video|node|thematique|form';
|
||||
$field_group->group_name = 'group_video';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'thematique';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_htabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Video',
|
||||
'weight' => '8',
|
||||
'children' => array(
|
||||
0 => 'field_video',
|
||||
1 => 'field_description',
|
||||
),
|
||||
'format_type' => 'htab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-video field-group-htab',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_video|node|thematique|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
name = Clameurs
|
||||
core = 7.x
|
||||
package = Clameurs
|
||||
dependencies[] = ctools
|
||||
dependencies[] = entity
|
||||
dependencies[] = entityreference
|
||||
dependencies[] = features
|
||||
dependencies[] = field_extrawidgets
|
||||
dependencies[] = field_group
|
||||
dependencies[] = node
|
||||
dependencies[] = options
|
||||
dependencies[] = page
|
||||
dependencies[] = rules
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = text
|
||||
dependencies[] = video_filter_field
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = field_description
|
||||
features[field_base][] = field_doc
|
||||
features[field_base][] = field_ecouter
|
||||
features[field_base][] = field_episodes
|
||||
features[field_base][] = field_habiter
|
||||
features[field_base][] = field_thematique
|
||||
features[field_base][] = field_video
|
||||
features[field_group][] = group_episodes|node|thematique|form
|
||||
features[field_group][] = group_htabs|node|documentair|form
|
||||
features[field_group][] = group_htabs|node|episode|form
|
||||
features[field_group][] = group_htabs|node|thematique|form
|
||||
features[field_group][] = group_texte|node|documentair|form
|
||||
features[field_group][] = group_texte|node|episode|form
|
||||
features[field_group][] = group_texte|node|thematique|form
|
||||
features[field_group][] = group_video|node|documentair|form
|
||||
features[field_group][] = group_video|node|episode|form
|
||||
features[field_group][] = group_video|node|thematique|form
|
||||
features[field_instance][] = node-documentair-body
|
||||
features[field_instance][] = node-documentair-field_description
|
||||
features[field_instance][] = node-documentair-field_doc
|
||||
features[field_instance][] = node-documentair-field_thematique
|
||||
features[field_instance][] = node-documentair-field_video
|
||||
features[field_instance][] = node-episode-body
|
||||
features[field_instance][] = node-episode-field_description
|
||||
features[field_instance][] = node-episode-field_habiter
|
||||
features[field_instance][] = node-episode-field_thematique
|
||||
features[field_instance][] = node-episode-field_video
|
||||
features[field_instance][] = node-thematique-body
|
||||
features[field_instance][] = node-thematique-field_description
|
||||
features[field_instance][] = node-thematique-field_ecouter
|
||||
features[field_instance][] = node-thematique-field_episodes
|
||||
features[field_instance][] = node-thematique-field_video
|
||||
features[node][] = documentair
|
||||
features[node][] = episode
|
||||
features[node][] = thematique
|
||||
features[rules_config][] = clameurs_habiter
|
||||
features[rules_config][] = rules_ecouter
|
||||
features[rules_config][] = rules_episode_th_matique
|
||||
features[taxonomy][] = actions
|
||||
features[variable][] = field_bundle_settings_node__documentair
|
||||
features[variable][] = field_bundle_settings_node__episode
|
||||
features[variable][] = field_bundle_settings_node__thematique
|
||||
features[variable][] = language_content_type_documentair
|
||||
features[variable][] = language_content_type_episode
|
||||
features[variable][] = language_content_type_thematique
|
||||
features[variable][] = menu_options_documentair
|
||||
features[variable][] = menu_options_episode
|
||||
features[variable][] = menu_options_thematique
|
||||
features[variable][] = menu_parent_documentair
|
||||
features[variable][] = menu_parent_episode
|
||||
features[variable][] = menu_parent_thematique
|
||||
features[variable][] = node_options_documentair
|
||||
features[variable][] = node_options_episode
|
||||
features[variable][] = node_options_thematique
|
||||
features[variable][] = node_preview_documentair
|
||||
features[variable][] = node_preview_episode
|
||||
features[variable][] = node_preview_thematique
|
||||
features[variable][] = node_submitted_documentair
|
||||
features[variable][] = node_submitted_episode
|
||||
features[variable][] = node_submitted_thematique
|
||||
project path = sites/all/modules/features
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the Clameurs feature.
|
||||
*/
|
||||
|
||||
include_once 'clameurs.features.inc';
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.rules_defaults.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_rules_configuration().
|
||||
*/
|
||||
function clameurs_default_rules_configuration() {
|
||||
$items = array();
|
||||
$items['clameurs_habiter'] = entity_import('rules_config', '{ "clameurs_habiter" : {
|
||||
"LABEL" : "Habiter",
|
||||
"PLUGIN" : "reaction rule",
|
||||
"OWNER" : "rules",
|
||||
"REQUIRES" : [ "rules" ],
|
||||
"ON" : { "node_insert--episode" : { "bundle" : "episode" } },
|
||||
"DO" : [
|
||||
{ "entity_fetch" : {
|
||||
"USING" : { "type" : "taxonomy_term", "id" : "1" },
|
||||
"PROVIDE" : { "entity_fetched" : { "habiter_term" : "Habiter" } }
|
||||
}
|
||||
},
|
||||
{ "data_set" : { "data" : [ "node:field-habiter" ], "value" : [ "habiter-term" ] } }
|
||||
]
|
||||
}
|
||||
}');
|
||||
$items['rules_ecouter'] = entity_import('rules_config', '{ "rules_ecouter" : {
|
||||
"LABEL" : "\\u00c9couter",
|
||||
"PLUGIN" : "reaction rule",
|
||||
"OWNER" : "rules",
|
||||
"REQUIRES" : [ "rules" ],
|
||||
"ON" : { "node_insert--thematique" : { "bundle" : "thematique" } },
|
||||
"DO" : [
|
||||
{ "entity_fetch" : {
|
||||
"USING" : { "type" : "taxonomy_term", "id" : "2" },
|
||||
"PROVIDE" : { "entity_fetched" : { "ecouter_term" : "\\u00c9couter" } }
|
||||
}
|
||||
},
|
||||
{ "data_set" : { "data" : [ "node:field-ecouter" ], "value" : [ "ecouter-term" ] } }
|
||||
]
|
||||
}
|
||||
}');
|
||||
$items['rules_episode_th_matique'] = entity_import('rules_config', '{ "rules_episode_th_matique" : {
|
||||
"LABEL" : "episode-th\\u00e9matique",
|
||||
"PLUGIN" : "reaction rule",
|
||||
"ACTIVE" : false,
|
||||
"OWNER" : "rules",
|
||||
"REQUIRES" : [ "rules" ],
|
||||
"ON" : {
|
||||
"node_update--episode" : { "bundle" : "episode" },
|
||||
"node_insert--episode" : { "bundle" : "episode" }
|
||||
},
|
||||
"DO" : [
|
||||
{ "entity_fetch" : {
|
||||
"USING" : { "type" : "node", "id" : [ "node:field-thematique:nid" ] },
|
||||
"PROVIDE" : { "entity_fetched" : { "thematique" : "Th\\u00e9matique" } }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}');
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* clameurs.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function clameurs_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 = 'field_bundle_settings_node__documentair';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '0',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '8',
|
||||
),
|
||||
'redirect' => array(
|
||||
'weight' => '9',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__documentair'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__episode';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '0',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
'redirect' => array(
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__episode'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__thematique';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '0',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
'redirect' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__thematique'] = $strongarm;
|
||||
|
||||
$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_documentair';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_documentair'] = $strongarm;
|
||||
|
||||
$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_episode';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_episode'] = $strongarm;
|
||||
|
||||
$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_thematique';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_thematique'] = $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_documentair';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_documentair'] = $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_episode';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_episode'] = $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_thematique';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_thematique'] = $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_documentair';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_documentair'] = $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_episode';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_episode'] = $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_thematique';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_thematique'] = $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_documentair';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
);
|
||||
$export['node_options_documentair'] = $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_episode';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
);
|
||||
$export['node_options_episode'] = $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_thematique';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
);
|
||||
$export['node_options_thematique'] = $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_documentair';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_documentair'] = $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_episode';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_episode'] = $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_thematique';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_thematique'] = $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_documentair';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_documentair'] = $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_episode';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_episode'] = $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_thematique';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_thematique'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
Reference in New Issue
Block a user