updated amdin content-types showroom features

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-21 15:32:15 +01:00
parent cc295255a1
commit 039f49aded
17 changed files with 504 additions and 574 deletions

View File

@@ -91,6 +91,83 @@ function showroom_field_default_field_instances() {
),
);
// Exported field_instance: 'node-showroom-field_memo'.
$field_instances['node-showroom-field_memo'] = array(
'bundle' => 'showroom',
'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' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 5,
),
'homeblock' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_memo',
'label' => 'Mémo',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 10,
),
);
// Exported field_instance: 'node-showroom-field_public_address'.
$field_instances['node-showroom-field_public_address'] = array(
'bundle' => 'showroom',
@@ -430,7 +507,7 @@ function showroom_field_default_field_instances() {
),
),
'type' => 'addressfield_standard',
'weight' => 8,
'weight' => 7,
),
);
@@ -506,7 +583,7 @@ function showroom_field_default_field_instances() {
'size' => 60,
),
'type' => 'email_textfield',
'weight' => 10,
'weight' => 8,
),
);
@@ -823,7 +900,7 @@ function showroom_field_default_field_instances() {
'size' => 15,
),
'type' => 'phone_number',
'weight' => 12,
'weight' => 9,
),
);
@@ -1023,6 +1100,7 @@ function showroom_field_default_field_instances() {
t('Body');
t('Description');
t('Email');
t('Mémo');
t('Nom');
t('Phone');
t('Showroom');

View File

@@ -23,7 +23,7 @@ function showroom_node_info() {
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Name'),
'title_label' => t('Nom'),
'help' => '',
),
);

View File

@@ -80,16 +80,6 @@ function showroom_user_default_permissions() {
'module' => 'taxonomy',
);
// Exported permission: 'delete users with role 15'.
$permissions['delete users with role 15'] = array(
'name' => 'delete users with role 15',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'administerusersbyrole',
);
// Exported permission: 'edit any showroom content'.
$permissions['edit any showroom content'] = array(
'name' => 'edit any showroom content',
@@ -160,16 +150,6 @@ function showroom_user_default_permissions() {
'module' => 'taxonomy',
);
// Exported permission: 'edit users with role 15'.
$permissions['edit users with role 15'] = array(
'name' => 'edit users with role 15',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'administerusersbyrole',
);
// Exported permission: 'enter showroom revision log entry'.
$permissions['enter showroom revision log entry'] = array(
'name' => 'enter showroom revision log entry',

View File

@@ -28,6 +28,7 @@ features[field_base][] = description_field
features[field_base][] = field_showroom
features[field_base][] = field_tode_showroom
features[field_instance][] = node-showroom-body
features[field_instance][] = node-showroom-field_memo
features[field_instance][] = node-showroom-field_public_address
features[field_instance][] = node-showroom-field_public_email
features[field_instance][] = node-showroom-field_public_phone
@@ -45,7 +46,6 @@ features[user_permission][] = create showroom content
features[user_permission][] = delete any showroom content
features[user_permission][] = delete own showroom content
features[user_permission][] = delete terms in showroom
features[user_permission][] = delete users with role 15
features[user_permission][] = edit any showroom content
features[user_permission][] = edit field_showroom
features[user_permission][] = edit field_tode_showroom
@@ -53,7 +53,6 @@ features[user_permission][] = edit own field_showroom
features[user_permission][] = edit own field_tode_showroom
features[user_permission][] = edit own showroom content
features[user_permission][] = edit terms in showroom
features[user_permission][] = edit users with role 15
features[user_permission][] = enter showroom revision log entry
features[user_permission][] = merge showroom terms
features[user_permission][] = override showroom authored by option

View File

@@ -22,17 +22,17 @@ function showroom_strongarm() {
$strongarm->api_version = 1;
$strongarm->name = 'ant_pattern_showroom';
$strongarm->value = '<?php
//[node:field-tode-showroom:name]
$items = field_get_items(\'node\', $node, \'field_tode_showroom\');
return t($items[0][\'name\']);
?>
';
?>';
$export['ant_pattern_showroom'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'ant_php_showroom';
$strongarm->value = 1;
$strongarm->value = 0;
$export['ant_php_showroom'] = $strongarm;
$strongarm = new stdClass();
@@ -228,7 +228,7 @@ return t($items[0][\'name\']);
$strongarm->name = 'nodeformscols_field_placements_showroom_default';
$strongarm->value = array(
'additional_settings' => array(
'region' => 'main',
'region' => 'footer',
'weight' => '5',
'has_required' => FALSE,
'title' => 'Onglets verticaux',
@@ -236,7 +236,7 @@ return t($items[0][\'name\']);
),
'actions' => array(
'region' => 'right',
'weight' => '2',
'weight' => '3',
'has_required' => FALSE,
'title' => 'Enregistrer',
'hidden' => 0,
@@ -257,7 +257,7 @@ return t($items[0][\'name\']);
),
'body' => array(
'region' => 'main',
'weight' => '1',
'weight' => '4',
'has_required' => FALSE,
'title' => 'Body',
'hidden' => 0,
@@ -271,24 +271,31 @@ return t($items[0][\'name\']);
),
'field_public_address' => array(
'region' => 'main',
'weight' => '4',
'weight' => '3',
'has_required' => TRUE,
'title' => 'Adresse',
),
'field_public_email' => array(
'region' => 'main',
'weight' => '2',
'weight' => '1',
'has_required' => FALSE,
'title' => 'Email',
'hidden' => 0,
),
'field_public_phone' => array(
'region' => 'main',
'weight' => '3',
'weight' => '2',
'has_required' => FALSE,
'title' => 'Phone',
'hidden' => 0,
),
'field_memo' => array(
'region' => 'right',
'weight' => '2',
'has_required' => FALSE,
'title' => 'Mémo',
'hidden' => 0,
),
);
$export['nodeformscols_field_placements_showroom_default'] = $strongarm;