Skip to content

Instantly share code, notes, and snippets.

@welly
Created March 3, 2014 17:43
Show Gist options
  • Save welly/9330355 to your computer and use it in GitHub Desktop.
Save welly/9330355 to your computer and use it in GitHub Desktop.
$data = array(
'bundles' => array(
'innovation' => (object) array(
'type' => 'innovation',
'name' => 'Innovation',
'base' => 'node_content',
'module' => 'node',
'description' => '',
'help' => '',
'has_title' => '1',
'title_label' => 'Title',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'disabled' => '0',
'orig_type' => 'innovation',
'disabled_changed' => FALSE,
'bc_entity_type' => 'node',
),
),
'fields' => array(
'body' => array(
'entity_types' => array(
0 => 'node',
),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_body' => array(
'value' => 'body_value',
'summary' => 'body_summary',
'format' => 'body_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_body' => array(
'value' => 'body_value',
'summary' => 'body_summary',
'format' => 'body_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'body',
'type' => 'text_with_summary',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'summary' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'webform',
1 => 'page',
2 => 'innovation',
3 => 'organisation',
4 => 'resource',
5 => 'blog_post',
),
),
),
'field_approach' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'approaches',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_approach' => array(
'tid' => 'field_approach_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_approach' => array(
'tid' => 'field_approach_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_approach',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_associates' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(),
),
'foreign keys' => array(),
'indexes' => array(),
'field_name' => 'field_associates',
'type' => 'relation_add',
'module' => 'relation_add',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(),
'bundles' => array(
'node' => array(
0 => 'innovation',
),
),
),
'field_condition' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'mental_health_conditions',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_condition' => array(
'tid' => 'field_condition_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_condition' => array(
'tid' => 'field_condition_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_condition',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_discipline' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'disciplines',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_discipline' => array(
'tid' => 'field_discipline_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_discipline' => array(
'tid' => 'field_discipline_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_discipline',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_evidence' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(),
'allowed_values_function' => '',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_evidence' => array(
'value' => 'field_evidence_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_evidence' => array(
'value' => 'field_evidence_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'field_evidence',
'type' => 'list_text',
'module' => 'list',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
),
),
),
'field_files' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'display_field' => 0,
'display_default' => 0,
'uri_scheme' => 'public',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_files' => array(
'fid' => 'field_files_fid',
'display' => 'field_files_display',
'description' => 'field_files_description',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_files' => array(
'fid' => 'field_files_fid',
'display' => 'field_files_display',
'description' => 'field_files_description',
),
),
),
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'field_files',
'type' => 'file',
'module' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'display' => array(
'description' => 'Flag to control whether this file should be displayed when viewing content.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'description' => array(
'description' => 'A description of the file.',
'type' => 'text',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_funder' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'target_type' => 'node',
'handler' => 'base',
'handler_settings' => array(
'target_bundles' => array(
'funder' => 'funder',
),
'sort' => array(
'type' => 'property',
'property' => 'title',
'direction' => 'ASC',
),
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_funder' => array(
'target_id' => 'field_funder_target_id',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_funder' => array(
'target_id' => 'field_funder_target_id',
),
),
),
),
),
'foreign keys' => array(
'node' => array(
'table' => 'node',
'columns' => array(
'target_id' => 'nid',
),
),
),
'indexes' => array(
'target_id' => array(
0 => 'target_id',
),
),
'field_name' => 'field_funder',
'type' => 'entityreference',
'module' => 'entityreference',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'target_id' => array(
'description' => 'The id of the target entity.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
),
),
),
'field_image' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'display_field' => 0,
'display_default' => 0,
'uri_scheme' => 'public',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_image' => array(
'fid' => 'field_image_fid',
'display' => 'field_image_display',
'description' => 'field_image_description',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_image' => array(
'fid' => 'field_image_fid',
'display' => 'field_image_display',
'description' => 'field_image_description',
),
),
),
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'field_image',
'type' => 'file',
'module' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'display' => array(
'description' => 'Flag to control whether this file should be displayed when viewing content.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'description' => array(
'description' => 'A description of the file.',
'type' => 'text',
'not null' => FALSE,
),
),
'bundles' => array(
'user' => array(
0 => 'user',
),
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'funder',
4 => 'blog_post',
),
),
),
'field_images' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'display_field' => 0,
'display_default' => 0,
'uri_scheme' => 'public',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_images' => array(
'fid' => 'field_images_fid',
'display' => 'field_images_display',
'description' => 'field_images_description',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_images' => array(
'fid' => 'field_images_fid',
'display' => 'field_images_display',
'description' => 'field_images_description',
),
),
),
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'field_images',
'type' => 'file',
'module' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'display' => array(
'description' => 'Flag to control whether this file should be displayed when viewing content.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'description' => array(
'description' => 'A description of the file.',
'type' => 'text',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_phase' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(),
'allowed_values_function' => '',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_phase' => array(
'value' => 'field_phase_value',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_phase' => array(
'value' => 'field_phase_value',
),
),
),
),
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'field_name' => 'field_phase',
'type' => 'list_text',
'module' => 'list',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
),
),
),
'field_policy' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'policy_and_advocacy',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_policy' => array(
'tid' => 'field_policy_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_policy' => array(
'tid' => 'field_policy_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_policy',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_population' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'populations',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_population' => array(
'tid' => 'field_population_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_population' => array(
'tid' => 'field_population_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_population',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_region' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'regions',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_region' => array(
'tid' => 'field_region_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_region' => array(
'tid' => 'field_region_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_region',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_sector' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'health_sectors',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_sector' => array(
'tid' => 'field_sector_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_sector' => array(
'tid' => 'field_sector_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_sector',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_setting' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'settings',
'parent' => '0',
),
),
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_setting' => array(
'tid' => 'field_setting_tid',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_setting' => array(
'tid' => 'field_setting_tid',
),
),
),
),
),
'foreign keys' => array(
'tid' => array(
'table' => 'taxonomy_term_data',
'columns' => array(
'tid' => 'tid',
),
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'field_name' => 'field_setting',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'deleted' => '0',
'columns' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
'field_summary' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_summary' => array(
'value' => 'field_summary_value',
'format' => 'field_summary_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_summary' => array(
'value' => 'field_summary_value',
'format' => 'field_summary_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'field_summary',
'type' => 'text_long',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'funder',
4 => 'blog_post',
),
),
),
'field_video' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'display_field' => 0,
'display_default' => 0,
'uri_scheme' => 'public',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_video' => array(
'fid' => 'field_video_fid',
'display' => 'field_video_display',
'description' => 'field_video_description',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_video' => array(
'fid' => 'field_video_fid',
'display' => 'field_video_display',
'description' => 'field_video_description',
),
),
),
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'field_video',
'type' => 'file',
'module' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'display' => array(
'description' => 'Flag to control whether this file should be displayed when viewing content.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'description' => array(
'description' => 'A description of the file.',
'type' => 'text',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'innovation',
1 => 'organisation',
2 => 'resource',
3 => 'blog_post',
),
),
),
),
'instances' => array(
'body' => array(
0 => array(
'label' => 'Body',
'widget' => array(
'type' => 'text_textarea_with_summary',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'weight' => '5',
'module' => 'text',
),
'settings' => array(
'display_summary' => TRUE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'hidden',
'type' => 'text_default',
'settings' => array(),
'module' => 'text',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'type' => 'text_summary_or_trimmed',
'settings' => array(
'trim_length' => 600,
),
'module' => 'text',
'weight' => 0,
),
),
'required' => FALSE,
'description' => '',
'default_value' => NULL,
'field_name' => 'body',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_approach' => array(
0 => array(
'label' => 'Approaches',
'widget' => array(
'weight' => '7',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 3,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_approach',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_associates' => array(
0 => array(
'label' => 'Associates',
'widget' => array(
'weight' => '9',
'type' => 'relation_add',
'module' => 'relation_add',
'active' => 1,
'settings' => array(
'relation_endpoint_label' => 'custom',
'relation_endpoint_custom_label' => 'Associate',
'relation_endpoint_label_delta' => 1,
'relation_endpoint_search_by_id' => 1,
),
),
'settings' => array(
'relation_type' => array(
'testing' => 'testing',
),
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'relation_add_endpoints_and_fields',
'settings' => array(),
'module' => 'relation_add',
'weight' => 17,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'field_name' => 'field_associates',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_condition' => array(
0 => array(
'label' => 'Mental health conditions',
'widget' => array(
'weight' => '12',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 8,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_condition',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_discipline' => array(
0 => array(
'label' => 'Disciplines',
'widget' => array(
'weight' => '8',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 4,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_discipline',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_evidence' => array(
0 => array(
'label' => 'Level of evidence',
'widget' => array(
'weight' => '6',
'type' => 'options_select',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'list_default',
'settings' => array(),
'module' => 'list',
'weight' => 11,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_evidence',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_files' => array(
0 => array(
'label' => 'Files',
'widget' => array(
'weight' => '18',
'type' => 'media_generic',
'module' => 'media',
'active' => 1,
'settings' => array(
'allowed_types' => array(
'image' => 'image',
'audio' => 0,
'video' => 0,
'default' => 0,
),
'allowed_schemes' => array(
'public' => 'public',
),
'progress_indicator' => 'throbber',
),
),
'settings' => array(
'file_directory' => 'downloads/innovation',
'file_extensions' => 'txt',
'max_filesize' => '',
'description_field' => 0,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'file_default',
'settings' => array(),
'module' => 'file',
'weight' => 13,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'field_name' => 'field_files',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_funder' => array(
0 => array(
'label' => 'Funder',
'widget' => array(
'weight' => '8',
'type' => 'entityreference_autocomplete_tags',
'module' => 'entityreference',
'active' => 1,
'settings' => array(
'match_operator' => 'CONTAINS',
'size' => '60',
'path' => '',
),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'entityreference_label',
'settings' => array(
'link' => FALSE,
),
'module' => 'entityreference',
'weight' => 16,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_funder',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_image' => array(
0 => array(
'label' => 'Image',
'widget' => array(
'weight' => '3',
'type' => 'media_generic',
'module' => 'media',
'active' => 1,
'settings' => array(
'allowed_types' => array(
'image' => 'image',
'audio' => 0,
'video' => 0,
'default' => 0,
),
'allowed_schemes' => array(
'public' => 'public',
),
'progress_indicator' => 'throbber',
),
),
'settings' => array(
'file_directory' => 'images/innovation',
'file_extensions' => 'png jpg',
'max_filesize' => '',
'description_field' => 0,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'file_default',
'settings' => array(),
'module' => 'file',
'weight' => 1,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'field_name' => 'field_image',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_images' => array(
0 => array(
'label' => 'Image gallery',
'widget' => array(
'weight' => '20',
'type' => 'media_generic',
'module' => 'media',
'active' => 1,
'settings' => array(
'allowed_types' => array(
'image' => 'image',
0 => 0,
'audio' => 0,
'video' => 0,
'default' => 0,
),
'allowed_schemes' => array(
'public' => 'public',
),
'progress_indicator' => 'throbber',
),
),
'settings' => array(
'file_directory' => 'gallery/innovation',
'file_extensions' => 'txt',
'max_filesize' => '',
'description_field' => 0,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'file_default',
'settings' => array(),
'module' => 'file',
'weight' => 15,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'field_name' => 'field_images',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_phase' => array(
0 => array(
'label' => 'Phase of implementation',
'widget' => array(
'weight' => '7',
'type' => 'options_select',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'list_default',
'settings' => array(),
'module' => 'list',
'weight' => 12,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_phase',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_policy' => array(
0 => array(
'label' => 'Policy and advocacy',
'widget' => array(
'weight' => '9',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 5,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_policy',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_population' => array(
0 => array(
'label' => 'Populations',
'widget' => array(
'weight' => '13',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 9,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_population',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_region' => array(
0 => array(
'label' => 'Regions',
'widget' => array(
'weight' => '14',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 10,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_region',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_sector' => array(
0 => array(
'label' => 'Health sectors',
'widget' => array(
'weight' => '10',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 6,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_sector',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_setting' => array(
0 => array(
'label' => 'Settings',
'widget' => array(
'weight' => '11',
'type' => 'options_buttons',
'module' => 'options',
'active' => 1,
'settings' => array(),
),
'settings' => array(
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'taxonomy_term_reference_link',
'settings' => array(),
'module' => 'taxonomy',
'weight' => 7,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_setting',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_summary' => array(
0 => array(
'label' => 'Summary',
'widget' => array(
'weight' => '4',
'type' => 'text_textarea',
'module' => 'text',
'active' => 1,
'settings' => array(
'rows' => '4',
),
),
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'text_default',
'settings' => array(),
'module' => 'text',
'weight' => 2,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_summary',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
'field_video' => array(
0 => array(
'label' => 'Embedded video',
'widget' => array(
'weight' => '19',
'type' => 'media_generic',
'module' => 'media',
'active' => 1,
'settings' => array(
'allowed_types' => array(
'image' => 'image',
'audio' => 0,
'video' => 0,
'default' => 0,
),
'allowed_schemes' => array(
'public' => 'public',
),
'progress_indicator' => 'throbber',
),
),
'settings' => array(
'file_directory' => 'media/innovation',
'file_extensions' => 'txt',
'max_filesize' => '',
'description_field' => 0,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'file_default',
'settings' => array(),
'module' => 'file',
'weight' => 14,
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'field_name' => 'field_video',
'entity_type' => 'node',
'bundle' => 'innovation',
'deleted' => '0',
),
),
),
'fieldgroups' => array(
'group_media|node|innovation|form' => (object) array(
'id' => '5',
'identifier' => 'group_media|node|innovation|form',
'group_name' => 'group_media',
'entity_type' => 'node',
'bundle' => 'innovation',
'mode' => 'form',
'parent_name' => '',
'table' => 'field_group',
'type' => 'Normal',
'export_type' => 1,
'disabled' => FALSE,
'label' => 'Media',
'weight' => '11',
'children' => array(
0 => 'field_files',
1 => 'field_video',
2 => 'field_images',
),
'format_type' => 'fieldset',
'format_settings' => array(
'formatter' => 'collapsible',
'instance_settings' => array(
'description' => '',
'classes' => 'group-media field-group-fieldset',
'required_fields' => 1,
),
),
),
'group_taxonomies|node|innovation|form' => (object) array(
'id' => '6',
'identifier' => 'group_taxonomies|node|innovation|form',
'group_name' => 'group_taxonomies',
'entity_type' => 'node',
'bundle' => 'innovation',
'mode' => 'form',
'parent_name' => '',
'table' => 'field_group',
'type' => 'Normal',
'export_type' => 1,
'disabled' => FALSE,
'label' => 'Taxonomies',
'weight' => '10',
'children' => array(
0 => 'field_approach',
1 => 'field_discipline',
2 => 'field_policy',
3 => 'field_sector',
4 => 'field_setting',
5 => 'field_condition',
6 => 'field_population',
7 => 'field_region',
),
'format_type' => 'fieldset',
'format_settings' => array(
'formatter' => 'collapsible',
'instance_settings' => array(
'description' => '',
'classes' => 'group-taxonomies field-group-fieldset',
'required_fields' => 1,
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment