Commit fd3ca86b authored by ccarigna's avatar ccarigna
Browse files

Added image, file, and host fields. Re-ordered fields and changed display settings

parent 465d0be2
......@@ -51,4 +51,4 @@ function uw_ct_event_context_default_contexts() {
$export['event_categories'] = $context;
return $export;
}
\ No newline at end of file
}
......@@ -49,7 +49,7 @@ function uw_ct_event_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '1',
'weight' => '4',
),
'full' => array(
'label' => 'above',
......@@ -85,7 +85,7 @@ function uw_ct_event_field_default_fields() {
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => '6',
'weight' => '7',
),
),
);
......@@ -136,7 +136,7 @@ function uw_ct_event_field_default_fields() {
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => '8',
'weight' => '6',
),
'teaser' => array(
'label' => 'above',
......@@ -164,7 +164,7 @@ function uw_ct_event_field_default_fields() {
'track_list' => 0,
),
'type' => 'term_reference_tree',
'weight' => '7',
'weight' => '10',
),
),
);
......@@ -208,7 +208,7 @@ function uw_ct_event_field_default_fields() {
'label' => 'hidden',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'format_type' => 'event_full',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
......@@ -258,12 +258,92 @@ function uw_ct_event_field_default_fields() {
'input_format' => 'M j Y - g:i:sa',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => '0',
'repeat_collapsed' => '1',
'text_parts' => array(),
'year_range' => '-1:+3',
),
'type' => 'date_popup_repeat',
'weight' => '3',
'weight' => '2',
),
),
);
// Exported field: 'node-uw_event-field_event_host_link'
$fields['node-uw_event-field_event_host_link'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_event_host_link',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'title' => 'optional',
'title_value' => '',
'url' => 0,
),
'translatable' => '0',
'type' => 'link_field',
),
'field_instance' => array(
'bundle' => 'uw_event',
'default_value' => NULL,
'deleted' => '0',
'description' => 'Optional: provide a host name and link to the host website (e.g. Housing and Residences)',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '3',
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_event_host_link',
'label' => 'Host',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'enable_tokens' => 1,
'title' => 'optional',
'title_value' => '',
'url' => 'optional',
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '5',
),
),
);
......@@ -362,7 +442,7 @@ function uw_ct_event_field_default_fields() {
'module' => 'location_cck',
'settings' => array(),
'type' => 'location_default',
'weight' => '4',
'weight' => '1',
),
'full' => array(
'label' => 'above',
......@@ -390,7 +470,7 @@ function uw_ct_event_field_default_fields() {
'module' => 'location_cck',
'settings' => array(),
'type' => 'location',
'weight' => '2',
'weight' => '3',
),
),
);
......@@ -448,7 +528,7 @@ function uw_ct_event_field_default_fields() {
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => '2',
'weight' => '7',
),
'full' => array(
'label' => 'above',
......@@ -512,14 +592,14 @@ function uw_ct_event_field_default_fields() {
'bundle' => 'uw_event',
'default_value' => NULL,
'deleted' => '0',
'description' => 'optionally provide a link to an external website map for directions to the event location.',
'description' => 'Optional: provide a link to an external website map for directions to the event location.',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'inline',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '7',
'weight' => '2',
),
'full' => array(
'label' => 'above',
......@@ -537,19 +617,21 @@ function uw_ct_event_field_default_fields() {
),
'entity_type' => 'node',
'field_name' => 'field_event_map_link',
'label' => 'Map Link',
'label' => 'Map link',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'enable_tokens' => 1,
'title' => 'optional',
'title' => 'none',
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
......@@ -560,7 +642,7 @@ function uw_ct_event_field_default_fields() {
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '5',
'weight' => '4',
),
),
);
......@@ -597,14 +679,14 @@ function uw_ct_event_field_default_fields() {
'bundle' => 'uw_event',
'default_value' => NULL,
'deleted' => '0',
'description' => 'optionally provide a link to the event website for more information.',
'description' => 'Optional: provide a link to the event website for more information.',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'inline',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '6',
'weight' => '5',
),
'full' => array(
'label' => 'above',
......@@ -622,7 +704,7 @@ function uw_ct_event_field_default_fields() {
),
'entity_type' => 'node',
'field_name' => 'field_event_moreinfo_link',
'label' => 'More Information',
'label' => 'More information',
'required' => 0,
'settings' => array(
'attributes' => array(
......@@ -647,7 +729,218 @@ function uw_ct_event_field_default_fields() {
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '4',
'weight' => '6',
),
),
);
// Exported field: 'node-uw_event-field_file'
$fields['node-uw_event-field_file'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_file',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'module' => 'file',
'settings' => array(
'display_default' => 0,
'display_field' => 0,
'uri_scheme' => 'public',
),
'translatable' => '1',
'type' => 'file',
),
'field_instance' => array(
'bundle' => 'uw_event',
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => '9',
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_file',
'label' => 'Choose a file',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => 'uploads/files',
'file_extensions' => 'doc docx gz mp3 rtf pdf ppt pptx psd tar txt wav xls xlsx zip',
'max_filesize' => '25 MB',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'filefield_sources' => array(
'filefield_sources' => array(
'attach' => 0,
'imce' => 0,
'reference' => 'reference',
'remote' => 'remote',
),
'source_attach' => array(
'absolute' => '0',
'attach_mode' => 'copy',
'path' => 'file_attach',
),
'source_reference' => array(
'autocomplete' => '1',
),
),
'insert' => 1,
'insert_class' => '',
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 0,
'image' => 0,
'image_banner-750w' => 0,
'image_body-500px-wide' => 0,
'image_body-500px-wide-max' => 0,
'image_large' => 0,
'image_medium' => 0,
'image_profile-photo-block' => 0,
'image_sidebar-220px-wide' => 0,
'image_thumbnail' => 0,
'link' => 0,
),
'insert_width' => '',
'progress_indicator' => 'throbber',
),
'type' => 'file_generic',
'weight' => '14',
),
),
);
// Exported field: 'node-uw_event-field_image'
$fields['node-uw_event-field_image'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_image',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'module' => 'image',
'settings' => array(
'default_image' => 0,
'uri_scheme' => 'public',
),
'translatable' => '1',
'type' => 'image',
),
'field_instance' => array(
'bundle' => 'uw_event',
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => '8',
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_image',
'label' => 'Choose an image',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'file_directory' => 'uploads/images',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '10 MB',
'max_resolution' => '3000x3000',
'min_resolution' => '10x10',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'filefield_sources' => array(
'filefield_sources' => array(
'attach' => 0,
'imce' => 0,
'reference' => 'reference',
'remote' => 'remote',
),
'source_attach' => array(
'absolute' => '0',
'attach_mode' => 'copy',
'path' => 'file_attach',
),
'source_reference' => array(
'autocomplete' => '1',
),
),
'insert' => 1,
'insert_class' => '',
'insert_default' => 'image',
'insert_styles' => array(
'auto' => 0,
'image' => 'image',
'image_banner-750w' => 0,
'image_body-500px-wide' => 'image_body-500px-wide',
'image_body-500px-wide-max' => 0,
'image_large' => 0,
'image_medium' => 0,
'image_profile-photo-block' => 0,
'image_sidebar-220px-wide' => 'image_sidebar-220px-wide',
'image_thumbnail' => 0,
'link' => 0,
),
'insert_width' => '500',
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => '9',
),
),
);
......@@ -775,16 +1068,20 @@ function uw_ct_event_field_default_fields() {
// Translatables
// Included for use with string extractors like potx.
t('Audience');
t('Choose a file');
t('Choose a location or enter location information below.');
t('Choose an image');
t('Date and time');
t('Description');
t('Host');
t('Location');
t('Location Details');
t('Location Lookup');
t('Map Link');
t('More Information');
t('optionally provide a link to an external website map for directions to the event location.');
t('optionally provide a link to the event website for more information.');
t('Map link');
t('More information');
t('Optional: provide a host name and link to the host website (e.g. Housing and Residences)');
t('Optional: provide a link to an external website map for directions to the event location.');
t('Optional: provide a link to the event website for more information.');
return $fields;
}
......@@ -128,6 +128,23 @@ function uw_ct_event_rdf_default_mappings() {
0 => 'schema:startDate',
),
),
'field_event_moreinfo_link' => array(
'predicates' => array(),
),
'field_event_map_link' => array(
'predicates' => array(),
),
'field_event_host_link' => array(
'predicates' => array(),
),
'field_image' => array(
'predicates' => array(),
'type' => 'rel',
),
'field_file' => array(
'predicates' => array(),
'type' => 'rel',
),
);
return $rdf_mappings;
......
......@@ -7,6 +7,7 @@ dependencies[] = "date_popup"
dependencies[] = "date_repeat"
dependencies[] = "date_views"
dependencies[] = "features"
dependencies[] = "image"
dependencies[] = "link"
dependencies[] = "location_cck"
dependencies[] = "node_reference"
......@@ -27,10 +28,13 @@ features[ctools][] = "views:views_default:3.0"
features[field][] = "node-uw_event-body"
features[field][] = "node-uw_event-field_audience"
features[field][] = "node-uw_event-field_event_date"
features[field][] = "node-uw_event-field_event_host_link"
features[field][] = "node-uw_event-field_event_location"
features[field][] = "node-uw_event-field_event_location_lookup"
features[field][] = "node-uw_event-field_event_map_link"
features[field][] = "node-uw_event-field_event_moreinfo_link"
features[field][] = "node-uw_event-field_file"
features[field][] = "node-uw_event-field_image"
features[field][] = "node-uw_location-field_location_details"
features[node][] = "uw_event"
features[node][] = "uw_location"
......
......@@ -114,7 +114,7 @@ function uw_ct_event_strongarm() {
$strongarm->name = 'date_format_event_full';
$strongarm->value = 'l, F j, Y - g:ia';
$export['date_format_event_full'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
......@@ -352,8 +352,9 @@ function uw_ct_event_strongarm() {
$strongarm->api_version = 1;
$strongarm->name = 'node_options_uw_event';
$strongarm->value = array(
0 => 'moderation',
1 => 'revision',
0 => 'promote',
1 => 'moderation',
2 => 'revision',
);
$export['node_options_uw_event'] = $strongarm;
......@@ -454,7 +455,7 @@ function uw_ct_event_strongarm() {
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'workbench_moderation_default_state_uw_event';
$strongarm->value = 'published';
$strongarm->value = 'draft';
$export['workbench_moderation_default_state_uw_event'] = $strongarm;
$strongarm = new stdClass;
......
......@@ -888,4 +888,4 @@ function uw_ct_event_views_default_views() {
$export['events'] = $view;
return $export;
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment