Showroom feature
This commit is contained in:
@@ -31,5 +31,71 @@ function showroom_field_default_field_bases() {
|
||||
'type' => 'text_with_summary',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_showroom'.
|
||||
$field_bases['field_showroom'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_showroom',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'showroom',
|
||||
'parent' => 0,
|
||||
'depth' => '',
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
'options_list_callback' => 'content_taxonomy_allowed_values',
|
||||
'profile2_private' => FALSE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_tode_showroom'.
|
||||
$field_bases['field_tode_showroom'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_tode_showroom',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'showroom',
|
||||
'parent' => 0,
|
||||
'depth' => '',
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
'options_list_callback' => 'content_taxonomy_allowed_values',
|
||||
'profile2_private' => FALSE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
||||
|
@@ -10,6 +10,904 @@
|
||||
function showroom_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'node-showroom-body'.
|
||||
$field_instances['node-showroom-body'] = 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' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 0,
|
||||
),
|
||||
'homeblock' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'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-showroom-field_public_address'.
|
||||
$field_instances['node-showroom-field_public_address'] = 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' => 'addressfield',
|
||||
'settings' => array(
|
||||
'format_handlers' => array(
|
||||
0 => 'address',
|
||||
),
|
||||
'use_widget_handlers' => 1,
|
||||
),
|
||||
'type' => 'addressfield_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'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_public_address',
|
||||
'label' => 'Adresse',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'addressfield',
|
||||
'settings' => array(
|
||||
'available_countries' => array(
|
||||
'AD' => 'AD',
|
||||
'AE' => 'AE',
|
||||
'AF' => 'AF',
|
||||
'AG' => 'AG',
|
||||
'AI' => 'AI',
|
||||
'AL' => 'AL',
|
||||
'AM' => 'AM',
|
||||
'AN' => 'AN',
|
||||
'AO' => 'AO',
|
||||
'AQ' => 'AQ',
|
||||
'AR' => 'AR',
|
||||
'AS' => 'AS',
|
||||
'AT' => 'AT',
|
||||
'AU' => 'AU',
|
||||
'AW' => 'AW',
|
||||
'AX' => 'AX',
|
||||
'AZ' => 'AZ',
|
||||
'BA' => 'BA',
|
||||
'BB' => 'BB',
|
||||
'BD' => 'BD',
|
||||
'BE' => 'BE',
|
||||
'BF' => 'BF',
|
||||
'BG' => 'BG',
|
||||
'BH' => 'BH',
|
||||
'BI' => 'BI',
|
||||
'BJ' => 'BJ',
|
||||
'BL' => 'BL',
|
||||
'BM' => 'BM',
|
||||
'BN' => 'BN',
|
||||
'BO' => 'BO',
|
||||
'BQ' => 'BQ',
|
||||
'BR' => 'BR',
|
||||
'BS' => 'BS',
|
||||
'BT' => 'BT',
|
||||
'BV' => 'BV',
|
||||
'BW' => 'BW',
|
||||
'BY' => 'BY',
|
||||
'BZ' => 'BZ',
|
||||
'CA' => 'CA',
|
||||
'CC' => 'CC',
|
||||
'CD' => 'CD',
|
||||
'CF' => 'CF',
|
||||
'CG' => 'CG',
|
||||
'CH' => 'CH',
|
||||
'CI' => 'CI',
|
||||
'CK' => 'CK',
|
||||
'CL' => 'CL',
|
||||
'CM' => 'CM',
|
||||
'CN' => 'CN',
|
||||
'CO' => 'CO',
|
||||
'CR' => 'CR',
|
||||
'CU' => 'CU',
|
||||
'CV' => 'CV',
|
||||
'CW' => 'CW',
|
||||
'CX' => 'CX',
|
||||
'CY' => 'CY',
|
||||
'CZ' => 'CZ',
|
||||
'DE' => 'DE',
|
||||
'DJ' => 'DJ',
|
||||
'DK' => 'DK',
|
||||
'DM' => 'DM',
|
||||
'DO' => 'DO',
|
||||
'DZ' => 'DZ',
|
||||
'EC' => 'EC',
|
||||
'EE' => 'EE',
|
||||
'EG' => 'EG',
|
||||
'EH' => 'EH',
|
||||
'ER' => 'ER',
|
||||
'ES' => 'ES',
|
||||
'ET' => 'ET',
|
||||
'FI' => 'FI',
|
||||
'FJ' => 'FJ',
|
||||
'FK' => 'FK',
|
||||
'FM' => 'FM',
|
||||
'FO' => 'FO',
|
||||
'FR' => 'FR',
|
||||
'GA' => 'GA',
|
||||
'GB' => 'GB',
|
||||
'GD' => 'GD',
|
||||
'GE' => 'GE',
|
||||
'GF' => 'GF',
|
||||
'GG' => 'GG',
|
||||
'GH' => 'GH',
|
||||
'GI' => 'GI',
|
||||
'GL' => 'GL',
|
||||
'GM' => 'GM',
|
||||
'GN' => 'GN',
|
||||
'GP' => 'GP',
|
||||
'GQ' => 'GQ',
|
||||
'GR' => 'GR',
|
||||
'GS' => 'GS',
|
||||
'GT' => 'GT',
|
||||
'GU' => 'GU',
|
||||
'GW' => 'GW',
|
||||
'GY' => 'GY',
|
||||
'HK' => 'HK',
|
||||
'HM' => 'HM',
|
||||
'HN' => 'HN',
|
||||
'HR' => 'HR',
|
||||
'HT' => 'HT',
|
||||
'HU' => 'HU',
|
||||
'ID' => 'ID',
|
||||
'IE' => 'IE',
|
||||
'IL' => 'IL',
|
||||
'IM' => 'IM',
|
||||
'IN' => 'IN',
|
||||
'IO' => 'IO',
|
||||
'IQ' => 'IQ',
|
||||
'IR' => 'IR',
|
||||
'IS' => 'IS',
|
||||
'IT' => 'IT',
|
||||
'JE' => 'JE',
|
||||
'JM' => 'JM',
|
||||
'JO' => 'JO',
|
||||
'JP' => 'JP',
|
||||
'KE' => 'KE',
|
||||
'KG' => 'KG',
|
||||
'KH' => 'KH',
|
||||
'KI' => 'KI',
|
||||
'KM' => 'KM',
|
||||
'KN' => 'KN',
|
||||
'KP' => 'KP',
|
||||
'KR' => 'KR',
|
||||
'KW' => 'KW',
|
||||
'KY' => 'KY',
|
||||
'KZ' => 'KZ',
|
||||
'LA' => 'LA',
|
||||
'LB' => 'LB',
|
||||
'LC' => 'LC',
|
||||
'LI' => 'LI',
|
||||
'LK' => 'LK',
|
||||
'LR' => 'LR',
|
||||
'LS' => 'LS',
|
||||
'LT' => 'LT',
|
||||
'LU' => 'LU',
|
||||
'LV' => 'LV',
|
||||
'LY' => 'LY',
|
||||
'MA' => 'MA',
|
||||
'MC' => 'MC',
|
||||
'MD' => 'MD',
|
||||
'ME' => 'ME',
|
||||
'MF' => 'MF',
|
||||
'MG' => 'MG',
|
||||
'MH' => 'MH',
|
||||
'MK' => 'MK',
|
||||
'ML' => 'ML',
|
||||
'MM' => 'MM',
|
||||
'MN' => 'MN',
|
||||
'MO' => 'MO',
|
||||
'MP' => 'MP',
|
||||
'MQ' => 'MQ',
|
||||
'MR' => 'MR',
|
||||
'MS' => 'MS',
|
||||
'MT' => 'MT',
|
||||
'MU' => 'MU',
|
||||
'MV' => 'MV',
|
||||
'MW' => 'MW',
|
||||
'MX' => 'MX',
|
||||
'MY' => 'MY',
|
||||
'MZ' => 'MZ',
|
||||
'NA' => 'NA',
|
||||
'NC' => 'NC',
|
||||
'NE' => 'NE',
|
||||
'NF' => 'NF',
|
||||
'NG' => 'NG',
|
||||
'NI' => 'NI',
|
||||
'NL' => 'NL',
|
||||
'NO' => 'NO',
|
||||
'NP' => 'NP',
|
||||
'NR' => 'NR',
|
||||
'NU' => 'NU',
|
||||
'NZ' => 'NZ',
|
||||
'OM' => 'OM',
|
||||
'PA' => 'PA',
|
||||
'PE' => 'PE',
|
||||
'PF' => 'PF',
|
||||
'PG' => 'PG',
|
||||
'PH' => 'PH',
|
||||
'PK' => 'PK',
|
||||
'PL' => 'PL',
|
||||
'PM' => 'PM',
|
||||
'PN' => 'PN',
|
||||
'PR' => 'PR',
|
||||
'PS' => 'PS',
|
||||
'PT' => 'PT',
|
||||
'PW' => 'PW',
|
||||
'PY' => 'PY',
|
||||
'QA' => 'QA',
|
||||
'RE' => 'RE',
|
||||
'RO' => 'RO',
|
||||
'RS' => 'RS',
|
||||
'RU' => 'RU',
|
||||
'RW' => 'RW',
|
||||
'SA' => 'SA',
|
||||
'SB' => 'SB',
|
||||
'SC' => 'SC',
|
||||
'SD' => 'SD',
|
||||
'SE' => 'SE',
|
||||
'SG' => 'SG',
|
||||
'SH' => 'SH',
|
||||
'SI' => 'SI',
|
||||
'SJ' => 'SJ',
|
||||
'SK' => 'SK',
|
||||
'SL' => 'SL',
|
||||
'SM' => 'SM',
|
||||
'SN' => 'SN',
|
||||
'SO' => 'SO',
|
||||
'SR' => 'SR',
|
||||
'SS' => 'SS',
|
||||
'ST' => 'ST',
|
||||
'SV' => 'SV',
|
||||
'SX' => 'SX',
|
||||
'SY' => 'SY',
|
||||
'SZ' => 'SZ',
|
||||
'TC' => 'TC',
|
||||
'TD' => 'TD',
|
||||
'TF' => 'TF',
|
||||
'TG' => 'TG',
|
||||
'TH' => 'TH',
|
||||
'TJ' => 'TJ',
|
||||
'TK' => 'TK',
|
||||
'TL' => 'TL',
|
||||
'TM' => 'TM',
|
||||
'TN' => 'TN',
|
||||
'TO' => 'TO',
|
||||
'TR' => 'TR',
|
||||
'TT' => 'TT',
|
||||
'TV' => 'TV',
|
||||
'TW' => 'TW',
|
||||
'TZ' => 'TZ',
|
||||
'UA' => 'UA',
|
||||
'UG' => 'UG',
|
||||
'UM' => 'UM',
|
||||
'US' => 'US',
|
||||
'UY' => 'UY',
|
||||
'UZ' => 'UZ',
|
||||
'VA' => 'VA',
|
||||
'VC' => 'VC',
|
||||
'VE' => 'VE',
|
||||
'VG' => 'VG',
|
||||
'VI' => 'VI',
|
||||
'VN' => 'VN',
|
||||
'VU' => 'VU',
|
||||
'WF' => 'WF',
|
||||
'WS' => 'WS',
|
||||
'YE' => 'YE',
|
||||
'YT' => 'YT',
|
||||
'ZA' => 'ZA',
|
||||
'ZM' => 'ZM',
|
||||
'ZW' => 'ZW',
|
||||
),
|
||||
'default_country' => '',
|
||||
'format_handlers' => array(
|
||||
'address' => 'address',
|
||||
'address-hide-postal-code' => 0,
|
||||
'address-hide-street' => 0,
|
||||
'address-hide-country' => 0,
|
||||
'organisation' => 0,
|
||||
'name-full' => 0,
|
||||
'name-oneline' => 0,
|
||||
'address-optional' => 0,
|
||||
),
|
||||
),
|
||||
'type' => 'addressfield_standard',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-showroom-field_public_email'.
|
||||
$field_instances['node-showroom-field_public_email'] = 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' => 'email',
|
||||
'settings' => array(),
|
||||
'type' => 'email_default',
|
||||
'weight' => 3,
|
||||
),
|
||||
'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_public_email',
|
||||
'label' => 'Email',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'email',
|
||||
'settings' => array(
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'email_textfield',
|
||||
'weight' => 10,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-showroom-field_public_phone'.
|
||||
$field_instances['node-showroom-field_public_phone'] = array(
|
||||
'bundle' => 'showroom',
|
||||
'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' => 'cck_phone',
|
||||
'settings' => array(),
|
||||
'type' => 'global_phone_number',
|
||||
'weight' => 4,
|
||||
),
|
||||
'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_public_phone',
|
||||
'label' => 'Phone',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'all_country_codes' => 1,
|
||||
'country_code_position' => 'after',
|
||||
'country_codes' => array(
|
||||
'country_selection' => array(
|
||||
'ad' => 0,
|
||||
'ae' => 0,
|
||||
'af' => 0,
|
||||
'ag' => 0,
|
||||
'ai' => 0,
|
||||
'al' => 0,
|
||||
'am' => 0,
|
||||
'an' => 0,
|
||||
'ao' => 0,
|
||||
'ar' => 0,
|
||||
'as' => 0,
|
||||
'at' => 0,
|
||||
'au' => 0,
|
||||
'aw' => 0,
|
||||
'az' => 0,
|
||||
'ba' => 0,
|
||||
'bb' => 0,
|
||||
'bd' => 0,
|
||||
'be' => 0,
|
||||
'bf' => 0,
|
||||
'bg' => 0,
|
||||
'bh' => 0,
|
||||
'bi' => 0,
|
||||
'bj' => 0,
|
||||
'bm' => 0,
|
||||
'bn' => 0,
|
||||
'bo' => 0,
|
||||
'br' => 0,
|
||||
'bs' => 0,
|
||||
'bt' => 0,
|
||||
'bw' => 0,
|
||||
'by' => 0,
|
||||
'bz' => 0,
|
||||
'ca' => 0,
|
||||
'cc' => 0,
|
||||
'cd' => 0,
|
||||
'cf' => 0,
|
||||
'cg' => 0,
|
||||
'ch' => 0,
|
||||
'ci' => 0,
|
||||
'ck' => 0,
|
||||
'cl' => 0,
|
||||
'cm' => 0,
|
||||
'cn' => 0,
|
||||
'co' => 0,
|
||||
'cr' => 0,
|
||||
'cu' => 0,
|
||||
'cv' => 0,
|
||||
'cx' => 0,
|
||||
'cy' => 0,
|
||||
'cz' => 0,
|
||||
'de' => 0,
|
||||
'dj' => 0,
|
||||
'dk' => 0,
|
||||
'dm' => 0,
|
||||
'do' => 0,
|
||||
'dz' => 0,
|
||||
'ec' => 0,
|
||||
'ee' => 0,
|
||||
'eg' => 0,
|
||||
'er' => 0,
|
||||
'es' => 0,
|
||||
'et' => 0,
|
||||
'fi' => 0,
|
||||
'fj' => 0,
|
||||
'fk' => 0,
|
||||
'fm' => 0,
|
||||
'fo' => 0,
|
||||
'fr' => 0,
|
||||
'ga' => 0,
|
||||
'gb' => 0,
|
||||
'gd' => 0,
|
||||
'ge' => 0,
|
||||
'gf' => 0,
|
||||
'gh' => 0,
|
||||
'gi' => 0,
|
||||
'gl' => 0,
|
||||
'gm' => 0,
|
||||
'gn' => 0,
|
||||
'gp' => 0,
|
||||
'gq' => 0,
|
||||
'gr' => 0,
|
||||
'gt' => 0,
|
||||
'gu' => 0,
|
||||
'gw' => 0,
|
||||
'gy' => 0,
|
||||
'hk' => 0,
|
||||
'hn' => 0,
|
||||
'hr' => 0,
|
||||
'ht' => 0,
|
||||
'hu' => 0,
|
||||
'id' => 0,
|
||||
'ie' => 0,
|
||||
'il' => 0,
|
||||
'in' => 0,
|
||||
'io' => 0,
|
||||
'iq' => 0,
|
||||
'ir' => 0,
|
||||
'is' => 0,
|
||||
'it' => 0,
|
||||
'jm' => 0,
|
||||
'jo' => 0,
|
||||
'jp' => 0,
|
||||
'ke' => 0,
|
||||
'kg' => 0,
|
||||
'kh' => 0,
|
||||
'ki' => 0,
|
||||
'km' => 0,
|
||||
'kn' => 0,
|
||||
'kp' => 0,
|
||||
'kr' => 0,
|
||||
'kw' => 0,
|
||||
'ky' => 0,
|
||||
'kz' => 0,
|
||||
'la' => 0,
|
||||
'lb' => 0,
|
||||
'lc' => 0,
|
||||
'li' => 0,
|
||||
'lk' => 0,
|
||||
'lr' => 0,
|
||||
'ls' => 0,
|
||||
'lt' => 0,
|
||||
'lu' => 0,
|
||||
'lv' => 0,
|
||||
'ly' => 0,
|
||||
'ma' => 0,
|
||||
'mc' => 0,
|
||||
'md' => 0,
|
||||
'me' => 0,
|
||||
'mg' => 0,
|
||||
'mh' => 0,
|
||||
'mk' => 0,
|
||||
'ml' => 0,
|
||||
'mm' => 0,
|
||||
'mn' => 0,
|
||||
'mo' => 0,
|
||||
'mp' => 0,
|
||||
'mq' => 0,
|
||||
'mr' => 0,
|
||||
'ms' => 0,
|
||||
'mt' => 0,
|
||||
'mu' => 0,
|
||||
'mv' => 0,
|
||||
'mw' => 0,
|
||||
'mx' => 0,
|
||||
'my' => 0,
|
||||
'mz' => 0,
|
||||
'na' => 0,
|
||||
'nc' => 0,
|
||||
'ne' => 0,
|
||||
'nf' => 0,
|
||||
'ng' => 0,
|
||||
'ni' => 0,
|
||||
'nl' => 0,
|
||||
'no' => 0,
|
||||
'np' => 0,
|
||||
'nr' => 0,
|
||||
'nu' => 0,
|
||||
'nz' => 0,
|
||||
'om' => 0,
|
||||
'pa' => 0,
|
||||
'pe' => 0,
|
||||
'pf' => 0,
|
||||
'pg' => 0,
|
||||
'ph' => 0,
|
||||
'pk' => 0,
|
||||
'pl' => 0,
|
||||
'pm' => 0,
|
||||
'pr' => 0,
|
||||
'ps' => 0,
|
||||
'pt' => 0,
|
||||
'pw' => 0,
|
||||
'py' => 0,
|
||||
'qa' => 0,
|
||||
'ro' => 0,
|
||||
'rs' => 0,
|
||||
'ru' => 0,
|
||||
'rw' => 0,
|
||||
'sa' => 0,
|
||||
'sb' => 0,
|
||||
'sc' => 0,
|
||||
'sd' => 0,
|
||||
'se' => 0,
|
||||
'sg' => 0,
|
||||
'sh' => 0,
|
||||
'si' => 0,
|
||||
'sk' => 0,
|
||||
'sl' => 0,
|
||||
'sm' => 0,
|
||||
'sn' => 0,
|
||||
'so' => 0,
|
||||
'sr' => 0,
|
||||
'ss' => 0,
|
||||
'st' => 0,
|
||||
'sv' => 0,
|
||||
'sy' => 0,
|
||||
'sz' => 0,
|
||||
'tc' => 0,
|
||||
'td' => 0,
|
||||
'tg' => 0,
|
||||
'th' => 0,
|
||||
'tj' => 0,
|
||||
'tk' => 0,
|
||||
'tm' => 0,
|
||||
'tn' => 0,
|
||||
'to' => 0,
|
||||
'tp' => 0,
|
||||
'tr' => 0,
|
||||
'tt' => 0,
|
||||
'tv' => 0,
|
||||
'tw' => 0,
|
||||
'tz' => 0,
|
||||
'ua' => 0,
|
||||
'ug' => 0,
|
||||
'us' => 0,
|
||||
'uy' => 0,
|
||||
'uz' => 0,
|
||||
'va' => 0,
|
||||
'vc' => 0,
|
||||
've' => 0,
|
||||
'vg' => 0,
|
||||
'vi' => 0,
|
||||
'vn' => 0,
|
||||
'vu' => 0,
|
||||
'wf' => 0,
|
||||
'ws' => 0,
|
||||
'ye' => 0,
|
||||
'yt' => 0,
|
||||
'za' => 0,
|
||||
'zm' => 0,
|
||||
'zw' => 0,
|
||||
),
|
||||
'hide_single_cc' => 0,
|
||||
),
|
||||
'default_country' => 'af',
|
||||
'enable_country_level_validation' => 1,
|
||||
'enable_default_country' => 0,
|
||||
'enable_extension' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'cck_phone',
|
||||
'settings' => array(
|
||||
'size' => 15,
|
||||
),
|
||||
'type' => 'phone_number',
|
||||
'weight' => 12,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-showroom-field_tode_showroom'.
|
||||
$field_instances['node-showroom-field_tode_showroom'] = array(
|
||||
'bundle' => 'showroom',
|
||||
'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' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 1,
|
||||
),
|
||||
'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_tode_showroom',
|
||||
'label' => 'Showroom',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'tode',
|
||||
'settings' => array(
|
||||
'choose_term_parent' => 0,
|
||||
'maxlength' => 255,
|
||||
'redirect_node_to_term' => 0,
|
||||
'redirect_term_to_node' => 1,
|
||||
'show_create_tode' => 0,
|
||||
'show_term_form' => 0,
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'tode',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'taxonomy_term-showroom-description_field'.
|
||||
$field_instances['taxonomy_term-showroom-description_field'] = array(
|
||||
'bundle' => 'showroom',
|
||||
@@ -86,10 +984,49 @@ function showroom_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'user-user-field_showroom'.
|
||||
$field_instances['user-user-field_showroom'] = array(
|
||||
'bundle' => 'user',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'user',
|
||||
'field_name' => 'field_showroom',
|
||||
'label' => 'Showroom',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => 1,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(
|
||||
'content_taxonomy_opt_groups' => 0,
|
||||
),
|
||||
'type' => 'options_select',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Adresse');
|
||||
t('Body');
|
||||
t('Description');
|
||||
t('Email');
|
||||
t('Nom');
|
||||
t('Phone');
|
||||
t('Showroom');
|
||||
|
||||
return $field_instances;
|
||||
}
|
||||
|
@@ -12,3 +12,21 @@ function showroom_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function showroom_node_info() {
|
||||
$items = array(
|
||||
'showroom' => array(
|
||||
'name' => t('Showroom'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Name'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
drupal_alter('node_info', $items);
|
||||
return $items;
|
||||
}
|
||||
|
@@ -10,20 +10,166 @@
|
||||
function showroom_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: 'assign Showroom role'.
|
||||
$permissions['assign Showroom role'] = array(
|
||||
'name' => 'assign Showroom role',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'role_delegation',
|
||||
);
|
||||
|
||||
// Exported permission: 'create field_showroom'.
|
||||
$permissions['create field_showroom'] = array(
|
||||
'name' => 'create field_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'create field_tode_showroom'.
|
||||
$permissions['create field_tode_showroom'] = array(
|
||||
'name' => 'create field_tode_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'create showroom content'.
|
||||
$permissions['create showroom content'] = array(
|
||||
'name' => 'create showroom content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete any showroom content'.
|
||||
$permissions['delete any showroom content'] = array(
|
||||
'name' => 'delete any showroom content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete own showroom content'.
|
||||
$permissions['delete own showroom content'] = array(
|
||||
'name' => 'delete own showroom content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete terms in showroom'.
|
||||
$permissions['delete terms in showroom'] = array(
|
||||
'name' => 'delete terms in showroom',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'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',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit field_showroom'.
|
||||
$permissions['edit field_showroom'] = array(
|
||||
'name' => 'edit field_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit field_tode_showroom'.
|
||||
$permissions['edit field_tode_showroom'] = array(
|
||||
'name' => 'edit field_tode_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own field_showroom'.
|
||||
$permissions['edit own field_showroom'] = array(
|
||||
'name' => 'edit own field_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own field_tode_showroom'.
|
||||
$permissions['edit own field_tode_showroom'] = array(
|
||||
'name' => 'edit own field_tode_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own showroom content'.
|
||||
$permissions['edit own showroom content'] = array(
|
||||
'name' => 'edit own showroom content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit terms in showroom'.
|
||||
$permissions['edit terms in showroom'] = array(
|
||||
'name' => 'edit terms in showroom',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
),
|
||||
'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',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'merge showroom terms'.
|
||||
$permissions['merge showroom terms'] = array(
|
||||
'name' => 'merge showroom terms',
|
||||
@@ -31,5 +177,95 @@ function showroom_user_default_permissions() {
|
||||
'module' => 'term_merge',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom authored by option'.
|
||||
$permissions['override showroom authored by option'] = array(
|
||||
'name' => 'override showroom authored by option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom authored on option'.
|
||||
$permissions['override showroom authored on option'] = array(
|
||||
'name' => 'override showroom authored on option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom promote to front page option'.
|
||||
$permissions['override showroom promote to front page option'] = array(
|
||||
'name' => 'override showroom promote to front page option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom published option'.
|
||||
$permissions['override showroom published option'] = array(
|
||||
'name' => 'override showroom published option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom revision option'.
|
||||
$permissions['override showroom revision option'] = array(
|
||||
'name' => 'override showroom revision option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override showroom sticky option'.
|
||||
$permissions['override showroom sticky option'] = array(
|
||||
'name' => 'override showroom sticky option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'show showroom title'.
|
||||
$permissions['show showroom title'] = array(
|
||||
'name' => 'show showroom title',
|
||||
'roles' => array(),
|
||||
'module' => 'materio_page_title',
|
||||
);
|
||||
|
||||
// Exported permission: 'view field_showroom'.
|
||||
$permissions['view field_showroom'] = array(
|
||||
'name' => 'view field_showroom',
|
||||
'roles' => array(
|
||||
'Showroom' => 'Showroom',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'view field_tode_showroom'.
|
||||
$permissions['view field_tode_showroom'] = array(
|
||||
'name' => 'view field_tode_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'view own field_showroom'.
|
||||
$permissions['view own field_showroom'] = array(
|
||||
'name' => 'view own field_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
// Exported permission: 'view own field_tode_showroom'.
|
||||
$permissions['view own field_tode_showroom'] = array(
|
||||
'name' => 'view own field_tode_showroom',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
||||
|
@@ -10,22 +10,10 @@
|
||||
function showroom_user_default_roles() {
|
||||
$roles = array();
|
||||
|
||||
// Exported role: Translator CN.
|
||||
$roles['Translator CN'] = array(
|
||||
'name' => 'Translator CN',
|
||||
'weight' => 12,
|
||||
);
|
||||
|
||||
// Exported role: Translator EN.
|
||||
$roles['Translator EN'] = array(
|
||||
'name' => 'Translator EN',
|
||||
'weight' => 10,
|
||||
);
|
||||
|
||||
// Exported role: Translator FR.
|
||||
$roles['Translator FR'] = array(
|
||||
'name' => 'Translator FR',
|
||||
'weight' => 11,
|
||||
// Exported role: Showroom.
|
||||
$roles['Showroom'] = array(
|
||||
'name' => 'Showroom',
|
||||
'weight' => 13,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
|
@@ -1,24 +1,105 @@
|
||||
name = Showroom
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = addressfield
|
||||
dependencies[] = administerusersbyrole
|
||||
dependencies[] = cck_phone
|
||||
dependencies[] = ctools
|
||||
dependencies[] = email
|
||||
dependencies[] = features
|
||||
dependencies[] = field_permissions
|
||||
dependencies[] = materio_content_types
|
||||
dependencies[] = materio_page_title
|
||||
dependencies[] = materio_subscriptions
|
||||
dependencies[] = metatag
|
||||
dependencies[] = node
|
||||
dependencies[] = options
|
||||
dependencies[] = override_node_options
|
||||
dependencies[] = role_delegation
|
||||
dependencies[] = rules
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = taxonomy_access
|
||||
dependencies[] = term_merge
|
||||
dependencies[] = text
|
||||
dependencies[] = tode
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
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_public_address
|
||||
features[field_instance][] = node-showroom-field_public_email
|
||||
features[field_instance][] = node-showroom-field_public_phone
|
||||
features[field_instance][] = node-showroom-field_tode_showroom
|
||||
features[field_instance][] = taxonomy_term-showroom-description_field
|
||||
features[field_instance][] = taxonomy_term-showroom-name_field
|
||||
features[field_instance][] = user-user-field_showroom
|
||||
features[node][] = showroom
|
||||
features[rules_config][] = rules_auto_tag_news_with_showroom
|
||||
features[taxonomy][] = showroom
|
||||
features[user_permission][] = assign Showroom role
|
||||
features[user_permission][] = create field_showroom
|
||||
features[user_permission][] = create field_tode_showroom
|
||||
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
|
||||
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_role][] = Translator CN
|
||||
features[user_role][] = Translator EN
|
||||
features[user_role][] = Translator FR
|
||||
features[user_permission][] = override showroom authored by option
|
||||
features[user_permission][] = override showroom authored on option
|
||||
features[user_permission][] = override showroom promote to front page option
|
||||
features[user_permission][] = override showroom published option
|
||||
features[user_permission][] = override showroom revision option
|
||||
features[user_permission][] = override showroom sticky option
|
||||
features[user_permission][] = show showroom title
|
||||
features[user_permission][] = view field_showroom
|
||||
features[user_permission][] = view field_tode_showroom
|
||||
features[user_permission][] = view own field_showroom
|
||||
features[user_permission][] = view own field_tode_showroom
|
||||
features[user_role][] = Showroom
|
||||
features[variable][] = additional_settings__active_tab_showroom
|
||||
features[variable][] = ant_pattern_showroom
|
||||
features[variable][] = ant_php_showroom
|
||||
features[variable][] = ant_showroom
|
||||
features[variable][] = date_popup_authored_enabled_showroom
|
||||
features[variable][] = date_popup_authored_format_showroom
|
||||
features[variable][] = date_popup_authored_year_range_showroom
|
||||
features[variable][] = diff_enable_revisions_page_node_showroom
|
||||
features[variable][] = diff_show_preview_changes_node_showroom
|
||||
features[variable][] = diff_view_mode_preview_node_showroom
|
||||
features[variable][] = entity_translation_hide_translation_links_showroom
|
||||
features[variable][] = entity_translation_node_metadata_showroom
|
||||
features[variable][] = field_bundle_settings_node__showroom
|
||||
features[variable][] = i18n_node_extended_showroom
|
||||
features[variable][] = i18n_node_options_showroom
|
||||
features[variable][] = language_content_type_showroom
|
||||
features[variable][] = menu_options_showroom
|
||||
features[variable][] = menu_parent_showroom
|
||||
features[variable][] = metatag_enable_node__showroom
|
||||
features[variable][] = metatag_enable_taxonomy_term__showroom
|
||||
features[variable][] = node_options_showroom
|
||||
features[variable][] = node_preview_showroom
|
||||
features[variable][] = node_submitted_showroom
|
||||
features[variable][] = nodeformscols_field_placements_showroom_default
|
||||
features[variable][] = print_html_display_comment_showroom
|
||||
features[variable][] = print_html_display_showroom
|
||||
features[variable][] = print_html_display_urllist_showroom
|
||||
features[variable][] = save_continue_showroom
|
||||
features[variable][] = simplenews_content_type_showroom
|
||||
features[variable][] = unique_field_comp_showroom
|
||||
features[variable][] = unique_field_fields_showroom
|
||||
features[variable][] = unique_field_scope_showroom
|
||||
features[variable][] = unique_field_show_matches_showroom
|
||||
project path = sites/all/modules/features
|
||||
|
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* showroom.rules_defaults.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_rules_configuration().
|
||||
*/
|
||||
function showroom_default_rules_configuration() {
|
||||
$items = array();
|
||||
$items['rules_auto_tag_news_with_showroom'] = entity_import('rules_config', '{ "rules_auto_tag_news_with_showroom" : {
|
||||
"LABEL" : "auto tag news with showroom",
|
||||
"PLUGIN" : "reaction rule",
|
||||
"REQUIRES" : [ "rules" ],
|
||||
"ON" : [ "node_presave" ],
|
||||
"IF" : [
|
||||
{ "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "breve" : "breve" } } } },
|
||||
{ "user_has_role" : { "account" : [ "node:author" ], "roles" : { "value" : { "15" : "15" } } } }
|
||||
],
|
||||
"DO" : [
|
||||
{ "data_set" : {
|
||||
"data" : [ "node:field-showroom" ],
|
||||
"value" : [ "node:author:field-showroom" ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}');
|
||||
return $items;
|
||||
}
|
336
sites/all/modules/features/showroom/showroom.strongarm.inc
Normal file
336
sites/all/modules/features/showroom/showroom.strongarm.inc
Normal file
@@ -0,0 +1,336 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* showroom.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function showroom_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_showroom';
|
||||
$strongarm->value = 'edit-auto-nodetitle';
|
||||
$export['additional_settings__active_tab_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_pattern_showroom';
|
||||
$strongarm->value = '<?php
|
||||
$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 = 0;
|
||||
$export['ant_php_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_showroom';
|
||||
$strongarm->value = '1';
|
||||
$export['ant_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 = 'date_popup_authored_enabled_showroom';
|
||||
$strongarm->value = 1;
|
||||
$export['date_popup_authored_enabled_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 = 'date_popup_authored_format_showroom';
|
||||
$strongarm->value = 'Y-m-d H:i';
|
||||
$export['date_popup_authored_format_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 = 'date_popup_authored_year_range_showroom';
|
||||
$strongarm->value = '3';
|
||||
$export['date_popup_authored_year_range_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 = 'diff_enable_revisions_page_node_showroom';
|
||||
$strongarm->value = 1;
|
||||
$export['diff_enable_revisions_page_node_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 = 'diff_show_preview_changes_node_showroom';
|
||||
$strongarm->value = 1;
|
||||
$export['diff_show_preview_changes_node_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 = 'diff_view_mode_preview_node_showroom';
|
||||
$strongarm->value = 'full';
|
||||
$export['diff_view_mode_preview_node_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 = 'entity_translation_hide_translation_links_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['entity_translation_hide_translation_links_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 = 'entity_translation_node_metadata_showroom';
|
||||
$strongarm->value = '0';
|
||||
$export['entity_translation_node_metadata_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 = 'field_bundle_settings_node__showroom';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'metatags' => array(
|
||||
'weight' => '6',
|
||||
),
|
||||
'title' => array(
|
||||
'weight' => '0',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
'redirect' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
'language' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__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 = 'i18n_node_extended_showroom';
|
||||
$strongarm->value = 1;
|
||||
$export['i18n_node_extended_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 = 'i18n_node_options_showroom';
|
||||
$strongarm->value = array();
|
||||
$export['i18n_node_options_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 = 'language_content_type_showroom';
|
||||
$strongarm->value = '4';
|
||||
$export['language_content_type_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 = 'menu_options_showroom';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_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 = 'menu_parent_showroom';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_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 = 'metatag_enable_node__showroom';
|
||||
$strongarm->value = TRUE;
|
||||
$export['metatag_enable_node__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 = 'metatag_enable_taxonomy_term__showroom';
|
||||
$strongarm->value = TRUE;
|
||||
$export['metatag_enable_taxonomy_term__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 = 'nodeformscols_field_placements_showroom_default';
|
||||
$strongarm->value = array(
|
||||
'additional_settings' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '5',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Onglets verticaux',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'actions' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '2',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Enregistrer',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'entity_translation_entity_form_language_update' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '1',
|
||||
'has_required' => FALSE,
|
||||
'title' => NULL,
|
||||
'hidden' => 0,
|
||||
),
|
||||
'language' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '0',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Langue',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'body' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '1',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Body',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'field_tode_showroom' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '0',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Showroom',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'field_public_address' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '4',
|
||||
'has_required' => TRUE,
|
||||
'title' => 'Adresse',
|
||||
),
|
||||
'field_public_email' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '2',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Email',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'field_public_phone' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '3',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Phone',
|
||||
'hidden' => 0,
|
||||
),
|
||||
);
|
||||
$export['nodeformscols_field_placements_showroom_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_showroom';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
);
|
||||
$export['node_options_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 = 'node_preview_showroom';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_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 = 'node_submitted_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_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 = 'print_html_display_comment_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['print_html_display_comment_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 = 'print_html_display_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['print_html_display_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 = 'print_html_display_urllist_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['print_html_display_urllist_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 = 'save_continue_showroom';
|
||||
$strongarm->value = 'Enregistrer et ajouter les champs';
|
||||
$export['save_continue_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 = 'simplenews_content_type_showroom';
|
||||
$strongarm->value = 0;
|
||||
$export['simplenews_content_type_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 = 'unique_field_comp_showroom';
|
||||
$strongarm->value = 'each';
|
||||
$export['unique_field_comp_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 = 'unique_field_fields_showroom';
|
||||
$strongarm->value = array();
|
||||
$export['unique_field_fields_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 = 'unique_field_scope_showroom';
|
||||
$strongarm->value = 'type';
|
||||
$export['unique_field_scope_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 = 'unique_field_show_matches_showroom';
|
||||
$strongarm->value = array();
|
||||
$export['unique_field_show_matches_showroom'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
Reference in New Issue
Block a user