updated date pathauto addressfield honeypot features modules
This commit is contained in:
@@ -4,9 +4,9 @@ core = 7.x
|
||||
package = Date/Time
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-07-29
|
||||
version = "7.x-2.8"
|
||||
; Information added by Drupal.org packaging script on 2015-09-08
|
||||
version = "7.x-2.9"
|
||||
core = "7.x"
|
||||
project = "date"
|
||||
datestamp = "1406653438"
|
||||
datestamp = "1441727353"
|
||||
|
||||
|
@@ -20,9 +20,9 @@ package = "Features"
|
||||
project = "date_migrate_example"
|
||||
version = "7.x-2.0"
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-07-29
|
||||
version = "7.x-2.8"
|
||||
; Information added by Drupal.org packaging script on 2015-09-08
|
||||
version = "7.x-2.9"
|
||||
core = "7.x"
|
||||
project = "date"
|
||||
datestamp = "1406653438"
|
||||
datestamp = "1441727353"
|
||||
|
||||
|
@@ -47,8 +47,8 @@ class DateExampleMigration extends XMLMigration {
|
||||
$xml_folder = drupal_get_path('module', 'date_migrate_example');
|
||||
$items_url = $xml_folder . '/date_migrate_example.xml';
|
||||
$item_xpath = '/source_data/item';
|
||||
$item_ID_xpath = 'id';
|
||||
$items_class = new MigrateItemsXML($items_url, $item_xpath, $item_ID_xpath);
|
||||
$item_id_xpath = 'id';
|
||||
$items_class = new MigrateItemsXML($items_url, $item_xpath, $item_id_xpath);
|
||||
$this->source = new MigrateSourceMultiItems($items_class, $fields);
|
||||
$this->destination = new MigrateDestinationNode('date_migrate_example');
|
||||
|
||||
@@ -78,7 +78,7 @@ class DateExampleMigration extends XMLMigration {
|
||||
$this->addFieldMapping('field_datestamp_range:to', 'datestamp_range_to');
|
||||
|
||||
// You can specify a timezone to be applied to all values going into the
|
||||
// field (Tokyo is UTC+9, no DST)
|
||||
// field (Tokyo is UTC+9, no DST).
|
||||
$this->addFieldMapping('field_datetime', 'datetime')
|
||||
->xpath('datetime');
|
||||
$this->addFieldMapping('field_datetime:timezone')
|
||||
@@ -107,25 +107,25 @@ class DateExampleMigration extends XMLMigration {
|
||||
// The date range field can have multiple values.
|
||||
$current_row->date_range_from = array();
|
||||
foreach ($current_row->xml->date_range as $range) {
|
||||
$current_row->date_range_from[] = (string)$range->from[0];
|
||||
$current_row->date_range_to[] = (string)$range->to[0];
|
||||
$current_row->date_range_from[] = (string) $range->from[0];
|
||||
$current_row->date_range_to[] = (string) $range->to[0];
|
||||
}
|
||||
|
||||
$current_row->datestamp_range_from =
|
||||
(string) $current_row->xml->datestamp_range->from[0];
|
||||
$current_row->datestamp_range_to =
|
||||
(string) $current_row->xml->datestamp_range->to[0];
|
||||
$current_row->datestamp_range_from
|
||||
= (string) $current_row->xml->datestamp_range->from[0];
|
||||
$current_row->datestamp_range_to
|
||||
= (string) $current_row->xml->datestamp_range->to[0];
|
||||
|
||||
$current_row->datetime_range_from =
|
||||
(string) $current_row->xml->datetime_range->from[0];
|
||||
$current_row->datetime_range_to =
|
||||
(string) $current_row->xml->datetime_range->to[0];
|
||||
$current_row->datetime_range_timezone =
|
||||
(string) $current_row->xml->datetime_range->timezone[0];
|
||||
$current_row->datetime_range_from
|
||||
= (string) $current_row->xml->datetime_range->from[0];
|
||||
$current_row->datetime_range_to
|
||||
= (string) $current_row->xml->datetime_range->to[0];
|
||||
$current_row->datetime_range_timezone
|
||||
= (string) $current_row->xml->datetime_range->timezone[0];
|
||||
|
||||
$current_row->date_repeat =
|
||||
(string) $current_row->xml->date_repeat->date[0];
|
||||
$current_row->date_repeat_rrule =
|
||||
(string) $current_row->xml->date_repeat->rule[0];
|
||||
$current_row->date_repeat
|
||||
= (string) $current_row->xml->date_repeat->date[0];
|
||||
$current_row->date_repeat_rrule
|
||||
= (string) $current_row->xml->date_repeat->rule[0];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user