diff --git a/unlv_events.features.field.inc b/unlv_events.features.field.inc index 0d04735..7f91746 100644 --- a/unlv_events.features.field.inc +++ b/unlv_events.features.field.inc @@ -56,7 +56,7 @@ function unlv_events_field_default_fields() { 'multiple_to' => '', ), 'type' => 'date_default', - 'weight' => 0, + 'weight' => '0', ), 'teaser' => array( 'label' => 'above', @@ -94,6 +94,503 @@ function unlv_events_field_default_fields() { ), ); + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_buildlink'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_buildlink'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_buildlink', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'link', + 'settings' => array( + 'attributes' => array( + 'class' => '', + 'rel' => '', + 'target' => 'default', + ), + 'display' => array( + 'url_cutoff' => 80, + ), + 'enable_tokens' => 1, + 'title' => 'optional', + 'title_maxlength' => 128, + 'title_value' => '', + 'url' => 0, + ), + 'translatable' => '0', + 'type' => 'link_field', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_default', + 'weight' => '5', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_buildlink', + 'label' => 'Building Link', + 'required' => 0, + 'settings' => array( + 'attributes' => array( + 'class' => '', + 'configurable_title' => 0, + 'rel' => '', + 'target' => 'default', + 'title' => '', + ), + 'display' => array( + 'url_cutoff' => '80', + ), + 'enable_tokens' => 1, + 'title' => 'none', + 'title_maxlength' => '128', + 'title_value' => '', + 'url' => 0, + 'user_register_form' => FALSE, + 'validate_url' => 1, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_field', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_buildname'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_buildname'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_buildname', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '4', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_buildname', + 'label' => 'Building Name', + 'required' => 0, + 'settings' => array( + 'better_formats' => array( + 'allowed_formats' => array( + 'plain_text' => 'plain_text', + ), + 'allowed_formats_toggle' => 0, + 'default_order_toggle' => 0, + 'default_order_wrapper' => array( + 'formats' => array( + 'plain_text' => array( + 'weight' => '10', + ), + ), + ), + ), + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => '60', + ), + 'type' => 'text_textfield', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_cost'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_cost'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_cost', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '6', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_cost', + 'label' => 'Event Cost', + 'required' => 0, + 'settings' => array( + 'better_formats' => array( + 'allowed_formats' => array( + 'plain_text' => 'plain_text', + ), + 'allowed_formats_toggle' => 0, + 'default_order_toggle' => 0, + 'default_order_wrapper' => array( + 'formats' => array( + 'plain_text' => array( + 'weight' => '10', + ), + ), + ), + ), + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => '60', + ), + 'type' => 'text_textfield', + 'weight' => '10', + ), + ), + ); + + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_location'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_location'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_location', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '3', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_location', + 'label' => 'Event Location', + 'required' => 0, + 'settings' => array( + 'better_formats' => array( + 'allowed_formats' => array( + 'plain_text' => 'plain_text', + ), + 'allowed_formats_toggle' => 0, + 'default_order_toggle' => 0, + 'default_order_wrapper' => array( + 'formats' => array( + 'plain_text' => array( + 'weight' => '10', + ), + ), + ), + ), + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => '60', + ), + 'type' => 'text_textfield', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_sponsor'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_sponsor'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_sponsor', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '7', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_sponsor', + 'label' => 'Event Sponsor', + 'required' => 0, + 'settings' => array( + 'better_formats' => array( + 'allowed_formats' => array( + 'plain_text' => 'plain_text', + ), + 'allowed_formats_toggle' => 0, + 'default_order_toggle' => 0, + 'default_order_wrapper' => array( + 'formats' => array( + 'plain_text' => array( + 'weight' => '10', + ), + ), + ), + ), + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => '60', + ), + 'type' => 'text_textfield', + 'weight' => '11', + ), + ), + ); + + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdate_text'. + $fields['node-feed_unlv_calendar_item-field_unlv_eventdate_text'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_unlv_eventdate_text', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'feed_unlv_calendar_item', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'This field is used internally; please ignore.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => '8', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_unlv_eventdate_text', + 'label' => 'Event Date Text', + 'required' => 0, + 'settings' => array( + 'better_formats' => array( + 'allowed_formats' => array( + 'plain_text' => 'plain_text', + ), + 'allowed_formats_toggle' => 0, + 'default_order_toggle' => 0, + 'default_order_wrapper' => array( + 'formats' => array( + 'plain_text' => array( + 'weight' => '10', + ), + ), + ), + ), + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => '60', + ), + 'type' => 'text_textfield', + 'weight' => '4', + ), + ), + ); + // Exported field: 'node-feed_unlv_calendar_item-field_unlv_eventdescription'. $fields['node-feed_unlv_calendar_item-field_unlv_eventdescription'] = array( 'field_config' => array( @@ -132,7 +629,7 @@ function unlv_events_field_default_fields() { 'module' => 'text', 'settings' => array(), 'type' => 'text_default', - 'weight' => 1, + 'weight' => '1', ), 'teaser' => array( 'label' => 'above', @@ -220,11 +717,11 @@ function unlv_events_field_default_fields() { 'description' => '', 'display' => array( 'default' => array( - 'label' => 'above', + 'label' => 'inline', 'module' => 'link', 'settings' => array(), 'type' => 'link_default', - 'weight' => 2, + 'weight' => '2', ), 'teaser' => array( 'label' => 'above', @@ -268,9 +765,16 @@ function unlv_events_field_default_fields() { // Translatables // Included for use with string extractors like potx. + t('Building Link'); + t('Building Name'); + t('Event Cost'); t('Event Date'); + t('Event Date Text'); t('Event Description'); t('Event Link'); + t('Event Location'); + t('Event Sponsor'); + t('This field is used internally; please ignore.'); return $fields; } diff --git a/unlv_events.feeds_importer_default.inc b/unlv_events.feeds_importer_default.inc index 65fa160..776d4a9 100644 --- a/unlv_events.feeds_importer_default.inc +++ b/unlv_events.feeds_importer_default.inc @@ -36,6 +36,12 @@ function unlv_events_feeds_importer_default() { 'xpathparser:3' => 'guid', 'xpathparser:4' => 'event:eventdate', 'xpathparser:5' => 'event:eventdate2', + 'xpathparser:11' => 'event:eventdate', + 'xpathparser:6' => 'event:buildinglink', + 'xpathparser:7' => 'event:buildingname', + 'xpathparser:8' => 'event:eventlocation', + 'xpathparser:9' => 'event:eventcost', + 'xpathparser:10' => 'event:eventsponsor', ), 'rawXML' => array( 'xpathparser:0' => 0, @@ -44,6 +50,12 @@ function unlv_events_feeds_importer_default() { 'xpathparser:3' => 0, 'xpathparser:4' => 0, 'xpathparser:5' => 0, + 'xpathparser:11' => 0, + 'xpathparser:6' => 0, + 'xpathparser:7' => 0, + 'xpathparser:8' => 0, + 'xpathparser:9' => 0, + 'xpathparser:10' => 0, ), 'context' => '//item', 'exp' => array( @@ -56,6 +68,12 @@ function unlv_events_feeds_importer_default() { 'xpathparser:3' => 0, 'xpathparser:4' => 0, 'xpathparser:5' => 0, + 'xpathparser:11' => 0, + 'xpathparser:6' => 0, + 'xpathparser:7' => 0, + 'xpathparser:8' => 0, + 'xpathparser:9' => 0, + 'xpathparser:10' => 0, ), ), 'allow_override' => 0, @@ -98,6 +116,36 @@ function unlv_events_feeds_importer_default() { 'target' => 'field_unlv_eventdate:end', 'unique' => FALSE, ), + 6 => array( + 'source' => 'xpathparser:11', + 'target' => 'field_unlv_eventdate_text', + 'unique' => FALSE, + ), + 7 => array( + 'source' => 'xpathparser:6', + 'target' => 'field_unlv_eventdate_buildlink:url', + 'unique' => FALSE, + ), + 8 => array( + 'source' => 'xpathparser:7', + 'target' => 'field_unlv_eventdate_buildname', + 'unique' => FALSE, + ), + 9 => array( + 'source' => 'xpathparser:8', + 'target' => 'field_unlv_eventdate_location', + 'unique' => FALSE, + ), + 10 => array( + 'source' => 'xpathparser:9', + 'target' => 'field_unlv_eventdate_cost', + 'unique' => FALSE, + ), + 11 => array( + 'source' => 'xpathparser:10', + 'target' => 'field_unlv_eventdate_sponsor', + 'unique' => FALSE, + ), ), 'update_existing' => '0', 'input_format' => 'html_limited', diff --git a/unlv_events.info b/unlv_events.info index 5c5a4e8..15062b0 100644 --- a/unlv_events.info +++ b/unlv_events.info @@ -3,7 +3,7 @@ description = Contains content types and views to import and display UNLV Events core = 7.x package = Features php = 5.2.4 -version = 7.x-0.1-beta2 +version = 7.x-0.1-beta3 project = unlv_events dependencies[] = calendar dependencies[] = ctools @@ -23,6 +23,12 @@ features[ctools][] = views:views_default:3.0 features[features_api][] = api:1 features[feeds_importer][] = rss_unlv_event_xml features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_buildlink +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_buildname +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_cost +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_location +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_sponsor +features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdate_text features[field][] = node-feed_unlv_calendar_item-field_unlv_eventdescription features[field][] = node-feed_unlv_calendar_item-field_unlv_eventlink features[node][] = feed_unlv_calendar diff --git a/unlv_events.strongarm.inc b/unlv_events.strongarm.inc index 7c0acee..47ae0d6 100644 --- a/unlv_events.strongarm.inc +++ b/unlv_events.strongarm.inc @@ -120,14 +120,39 @@ function unlv_events_strongarm() { $strongarm->api_version = 1; $strongarm->name = 'field_bundle_settings_node__feed_unlv_calendar_item'; $strongarm->value = array( - 'view_modes' => array(), + 'view_modes' => array( + 'teaser' => array( + 'custom_settings' => TRUE, + ), + 'full' => array( + 'custom_settings' => FALSE, + ), + 'rss' => array( + 'custom_settings' => FALSE, + ), + 'search_index' => array( + 'custom_settings' => FALSE, + ), + 'search_result' => array( + 'custom_settings' => FALSE, + ), + 'diff_standard' => array( + 'custom_settings' => FALSE, + ), + 'print' => array( + 'custom_settings' => FALSE, + ), + 'token' => array( + 'custom_settings' => FALSE, + ), + ), 'extra_fields' => array( 'form' => array( 'title' => array( 'weight' => '0', ), 'path' => array( - 'weight' => '4', + 'weight' => '8', ), ), 'display' => array(), diff --git a/unlv_events.views_default.inc b/unlv_events.views_default.inc index 85f9f68..7ecc6e5 100644 --- a/unlv_events.views_default.inc +++ b/unlv_events.views_default.inc @@ -55,7 +55,7 @@ function unlv_events_views_default_views() { $handler->display->display_options['fields']['field_unlv_eventdate']['element_label_colon'] = FALSE; $handler->display->display_options['fields']['field_unlv_eventdate']['hide_alter_empty'] = FALSE; $handler->display->display_options['fields']['field_unlv_eventdate']['settings'] = array( - 'format_type' => 'short', + 'format_type' => 'unlv_events_time_ampm', 'fromto' => 'both', 'multiple_number' => '', 'multiple_from' => '',