function angularjs_map_field_default_field_instances in AngularJS 7
Implements hook_field_default_field_instances().
File
- modules/
angularjs_map/ angularjs_map.features.field_instance.inc, line 10 - angularjs_map.features.field_instance.inc
Code
function angularjs_map_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-earthquake-body'
$field_instances['node-earthquake-body'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => TRUE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => -4,
),
);
// Exported field_instance: 'node-earthquake-field_cdi'
$field_instances['node-earthquake-field_cdi'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'prefix_suffix' => TRUE,
'scale' => 2,
'thousand_separator' => ' ',
),
'type' => 'number_decimal',
'weight' => 4,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_cdi',
'label' => 'CDI',
'required' => 0,
'settings' => array(
'max' => '',
'min' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => 0,
),
);
// Exported field_instance: 'node-earthquake-field_epicenter_distance'
$field_instances['node-earthquake-field_epicenter_distance'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'prefix_suffix' => TRUE,
'scale' => 2,
'thousand_separator' => ' ',
),
'type' => 'number_decimal',
'weight' => 5,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_epicenter_distance',
'label' => 'Epicenter distance',
'required' => 0,
'settings' => array(
'max' => '',
'min' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => 1,
),
);
// Exported field_instance: 'node-earthquake-field_felt'
$field_instances['node-earthquake-field_felt'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'prefix_suffix' => TRUE,
'scale' => 0,
'thousand_separator' => ' ',
),
'type' => 'number_integer',
'weight' => 3,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_felt',
'label' => 'Felt',
'required' => 0,
'settings' => array(
'max' => '',
'min' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => -1,
),
);
// Exported field_instance: 'node-earthquake-field_location'
$field_instances['node-earthquake-field_location'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'geofield',
'settings' => array(
'data' => 'full',
),
'type' => 'geofield_wkt',
'weight' => 6,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_location',
'label' => 'Location',
'required' => 0,
'settings' => array(
'local_solr' => array(
'enabled' => FALSE,
'lat_field' => 'lat',
'lng_field' => 'lng',
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'geofield',
'settings' => array(),
'type' => 'geofield_latlon',
'weight' => 2,
),
);
// Exported field_instance: 'node-earthquake-field_magnitude'
$field_instances['node-earthquake-field_magnitude'] = array(
'bundle' => 'earthquake',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'prefix_suffix' => TRUE,
'scale' => 2,
'thousand_separator' => ' ',
),
'type' => 'number_decimal',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_magnitude',
'label' => 'Magnitude',
'required' => 0,
'settings' => array(
'max' => '',
'min' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => -3,
),
);
// Exported field_instance: 'node-earthquake-field_time'
$field_instances['node-earthquake-field_time'] = array(
'bundle' => 'earthquake',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
),
'type' => 'date_default',
'weight' => 2,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_time',
'label' => 'Time',
'required' => 0,
'settings' => array(
'default_value' => 'now',
'default_value2' => 'same',
'default_value_code' => '',
'default_value_code2' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'increment' => 15,
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'label_position' => 'above',
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_select',
'weight' => -2,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
t('CDI');
t('Epicenter distance');
t('Felt');
t('Location');
t('Magnitude');
t('Time');
return $field_instances;
}