initial commit of starter install drupal 7

This commit is contained in:
Bachir Soussi Chiadmi
2015-02-21 17:21:40 +01:00
commit eeba51cea6
6113 changed files with 1249218 additions and 0 deletions
@@ -0,0 +1,45 @@
<?php
/**
* @file
* page.features.field_base.inc
*/
/**
* Implements hook_field_default_field_bases().
*/
function page_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'body'
$field_bases['body'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(
0 => 'node',
),
'field_name' => 'body',
'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_with_summary',
);
return $field_bases;
}
@@ -0,0 +1,63 @@
<?php
/**
* @file
* page.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function page_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-page-body'
$field_instances['node-page-body'] = array(
'bundle' => 'page',
'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,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
return $field_instances;
}
@@ -0,0 +1,32 @@
<?php
/**
* @file
* page.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function page_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_node_info().
*/
function page_node_info() {
$items = array(
'page' => array(
'name' => t('Page'),
'base' => 'node_content',
'description' => t('Use this content type to add static pages like "about" "contact" etc'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
@@ -0,0 +1,61 @@
<?php
/**
* @file
* page.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function page_user_default_permissions() {
$permissions = array();
// Exported permission: 'create page content'.
$permissions['create page content'] = array(
'name' => 'create page content',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'node',
);
// Exported permission: 'delete any page content'.
$permissions['delete any page content'] = array(
'name' => 'delete any page content',
'roles' => array(
'root' => 'root',
),
'module' => 'node',
);
// Exported permission: 'delete own page content'.
$permissions['delete own page content'] = array(
'name' => 'delete own page content',
'roles' => array(
'root' => 'root',
),
'module' => 'node',
);
// Exported permission: 'edit any page content'.
$permissions['edit any page content'] = array(
'name' => 'edit any page content',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'node',
);
// Exported permission: 'edit own page content'.
$permissions['edit own page content'] = array(
'name' => 'edit own page content',
'roles' => array(
'root' => 'root',
),
'module' => 'node',
);
return $permissions;
}
+30
View File
@@ -0,0 +1,30 @@
name = Page
core = 7.x
package = GUI
dependencies[] = ctools
dependencies[] = features
dependencies[] = node
dependencies[] = strongarm
dependencies[] = text
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:2
features[field_base][] = body
features[field_instance][] = node-page-body
features[node][] = page
features[user_permission][] = create page content
features[user_permission][] = delete any page content
features[user_permission][] = delete own page content
features[user_permission][] = edit any page content
features[user_permission][] = edit own page content
features[variable][] = additional_settings__active_tab_page
features[variable][] = devel_redirect_page
features[variable][] = menu_options_page
features[variable][] = menu_parent_page
features[variable][] = node_options_page
features[variable][] = node_preview_page
features[variable][] = node_submitted_page
features[variable][] = nodeformscols_field_placements_page_default
features[variable][] = page_cache_maximum_age
features[variable][] = pathauto_node_page_pattern
features[variable][] = workflow_page
project path = sites/all/modules/features
@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the Page feature.
*/
include_once 'page.features.inc';
@@ -0,0 +1,137 @@
<?php
/**
* @file
* page.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function page_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 = 'additional_settings__active_tab_page';
$strongarm->value = 'edit-menu';
$export['additional_settings__active_tab_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'devel_redirect_page';
$strongarm->value = 0;
$export['devel_redirect_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_options_page';
$strongarm->value = array();
$export['menu_options_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_parent_page';
$strongarm->value = 'main-menu:0';
$export['menu_parent_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'nodeformscols_field_placements_page_default';
$strongarm->value = array(
'title' => array(
'region' => 'main',
'weight' => '0',
'has_required' => TRUE,
'title' => 'Title',
),
'additional_settings' => array(
'region' => 'main',
'weight' => '2',
'has_required' => FALSE,
'title' => 'Vertical tabs',
'hidden' => 0,
),
'actions' => array(
'region' => 'right',
'weight' => '1',
'has_required' => FALSE,
'title' => 'Enregistrer',
'hidden' => 0,
),
'body' => array(
'region' => 'main',
'weight' => '1',
'has_required' => FALSE,
'title' => 'Body',
'hidden' => 0,
),
'entity_translation_entity_form_language_update' => array(
'region' => 'main',
'weight' => '3',
'has_required' => FALSE,
'title' => NULL,
'hidden' => 0,
),
'workflow' => array(
'region' => 'right',
'weight' => '0',
'has_required' => FALSE,
'title' => 'Masqué',
'hidden' => 0,
),
);
$export['nodeformscols_field_placements_page_default'] = $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_page';
$strongarm->value = array(
0 => 'status',
);
$export['node_options_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_preview_page';
$strongarm->value = '1';
$export['node_preview_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_submitted_page';
$strongarm->value = 0;
$export['node_submitted_page'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'page_cache_maximum_age';
$strongarm->value = '0';
$export['page_cache_maximum_age'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'pathauto_node_page_pattern';
$strongarm->value = '';
$export['pathauto_node_page_pattern'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'workflow_page';
$strongarm->value = array(
0 => 'node',
);
$export['workflow_page'] = $strongarm;
return $export;
}