created page/panel onepage home

This commit is contained in:
Bachir Soussi Chiadmi
2017-01-22 19:42:04 +01:00
parent a0fadb0757
commit b9ce53c6a2
9 changed files with 1528 additions and 104 deletions
@@ -4,6 +4,30 @@
* clameurs.features.inc
*/
/**
* Implements hook_default_cer().
*/
function clameurs_default_cer() {
$items = array();
$items['node:documentair:field_thematique*node:thematique:field_eclairages'] = entity_import('cer', '{
"cer_bidirectional" : { "und" : [ { "value" : "1" } ] },
"cer_enabled" : { "und" : [ { "value" : "1" } ] },
"cer_left" : { "und" : [ { "path" : "node:documentair:field_thematique" } ] },
"cer_right" : { "und" : [ { "path" : "node:thematique:field_eclairages" } ] },
"cer_weight" : { "und" : [ { "value" : "0" } ] },
"identifier" : "node:documentair:field_thematique*node:thematique:field_eclairages"
}');
$items['node:thematique:field_episodes*node:episode:field_thematique'] = entity_import('cer', '{
"cer_bidirectional" : { "und" : [ { "value" : "1" } ] },
"cer_enabled" : { "und" : [ { "value" : "1" } ] },
"cer_left" : { "und" : [ { "path" : "node:thematique:field_episodes" } ] },
"cer_right" : { "und" : [ { "path" : "node:episode:field_thematique" } ] },
"cer_weight" : { "und" : [ { "value" : "0" } ] },
"identifier" : "node:thematique:field_episodes*node:episode:field_thematique"
}');
return $items;
}
/**
* Implements hook_ctools_plugin_api().
*/
@@ -11,6 +35,12 @@ function clameurs_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
if ($module == "panels_mini" && $api == "panels_default") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
@@ -22,7 +52,7 @@ function clameurs_ctools_plugin_api($module = NULL, $api = NULL) {
function clameurs_node_info() {
$items = array(
'documentair' => array(
'name' => t('Documentair'),
'name' => t('Documentaire'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',