|
@@ -10,41 +10,6 @@
|
|
|
function materio_content_types_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',
|
|
|
- '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,
|
|
|
- 'profile2_private' => FALSE,
|
|
|
- ),
|
|
|
- 'translatable' => 1,
|
|
|
- 'type' => 'text_with_summary',
|
|
|
- );
|
|
|
-
|
|
|
// Exported field_base: 'field_attachments'
|
|
|
$field_bases['field_attachments'] = array(
|
|
|
'active' => 1,
|
|
@@ -544,39 +509,6 @@ $entity_field[0][\'value\'] = format_date($entity->created, \'breves\');',
|
|
|
'type' => 'entityreference',
|
|
|
);
|
|
|
|
|
|
- // Exported field_base: 'field_memo'
|
|
|
- $field_bases['field_memo'] = array(
|
|
|
- 'active' => 1,
|
|
|
- 'cardinality' => 1,
|
|
|
- 'deleted' => 0,
|
|
|
- 'entity_types' => array(),
|
|
|
- 'field_name' => 'field_memo',
|
|
|
- 'field_permissions' => array(
|
|
|
- 'type' => 2,
|
|
|
- ),
|
|
|
- '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,
|
|
|
- 'profile2_private' => TRUE,
|
|
|
- ),
|
|
|
- 'translatable' => 0,
|
|
|
- 'type' => 'text_long',
|
|
|
- );
|
|
|
-
|
|
|
// Exported field_base: 'field_nature_titre'
|
|
|
$field_bases['field_nature_titre'] = array(
|
|
|
'active' => 1,
|
|
@@ -1039,15 +971,15 @@ $entity_field[0][\'value\'] = format_date($entity->created, \'breves\');',
|
|
|
'data_size' => 'normal',
|
|
|
'data_type' => 'varchar',
|
|
|
),
|
|
|
- 'display_format' => '//dsm($entity);
|
|
|
-$workflow = workflow_get_workflow_type_map_by_type($entity->type);
|
|
|
-$states = workflow_get_workflow_states_by_wid($workflow->wid);
|
|
|
-foreach ($states as $state) {
|
|
|
- if ($state->sid == $entity->workflow) {
|
|
|
- $display_output = $state->state;
|
|
|
- dsm($state, \'state\');
|
|
|
- }
|
|
|
-}
|
|
|
+ 'display_format' => '//dsm($entity);
|
|
|
+$workflow = workflow_get_workflow_type_map_by_type($entity->type);
|
|
|
+$states = workflow_get_workflow_states_by_wid($workflow->wid);
|
|
|
+foreach ($states as $state) {
|
|
|
+ if ($state->sid == $entity->workflow) {
|
|
|
+ $display_output = $state->state;
|
|
|
+ dsm($state, \'state\');
|
|
|
+ }
|
|
|
+}
|
|
|
',
|
|
|
'entity_translation_sync' => FALSE,
|
|
|
'profile2_private' => FALSE,
|
|
@@ -1087,40 +1019,6 @@ foreach ($states as $state) {
|
|
|
'type' => 'text',
|
|
|
);
|
|
|
|
|
|
- // Exported field_base: 'synonyms_synonym'
|
|
|
- $field_bases['synonyms_synonym'] = array(
|
|
|
- 'active' => 1,
|
|
|
- 'cardinality' => -1,
|
|
|
- 'deleted' => 0,
|
|
|
- 'entity_types' => array(),
|
|
|
- 'field_name' => 'synonyms_synonym',
|
|
|
- '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,
|
|
|
- 'max_length' => 255,
|
|
|
- 'profile2_private' => FALSE,
|
|
|
- ),
|
|
|
- 'translatable' => 1,
|
|
|
- 'type' => 'text',
|
|
|
- );
|
|
|
-
|
|
|
// Exported field_base: 'title_field'
|
|
|
$field_bases['title_field'] = array(
|
|
|
'active' => 1,
|