Skip to content
Snippets Groups Projects
Commit 41b69eb3 authored by Melissa Miller's avatar Melissa Miller
Browse files

daily build

parent da31deaf
No related branches found
No related tags found
No related merge requests found
Showing
with 104 additions and 19 deletions
<?php
/**
* Provides install hooks for the BEF Test Content module.
*/
/**
* Adds terms to the hierarchical vocabulary.
*/
function bef_test_content_update_7001() {
// Set up an example hierarchical terms in the "Location" vocab.
$locations = array(
'United States' => array(
'California' => array(
'San Francisco',
'San Diego',
'Santa Barbara',
),
'Oregon' => array(
'Portland',
'Eugene',
),
'Washington' => array(
'Seattle',
'Spokane',
'Walla Walla',
),
),
'Canada' => array(
'British Columbia' => array(
'Vancouver',
'Victoria',
'Whistler',
),
'Alberta' => array(
'Calgary',
'Edmonton',
'Lake Louise',
),
),
'Mexico' => array(),
);
foreach ($locations as $country => $states) {
$country_tid = _bef_test_content_add_term($country);
if ($country_tid && !empty($states)) {
foreach ($states as $state => $cities) {
$state_tid = _bef_test_content_add_term($state, $country_tid);
if ($state_tid && !empty($cities)) {
foreach ($cities as $city) {
_bef_test_content_add_term($city, $state_tid);
}
}
}
}
}
}
/**
* Adds a new term to the bef_test-location vocabulary. If a TID is specified
* in $parent, the new term is added as a child of that term.
*
* @param string $name
* The name of the new term.
* @param int $parent
* The (optional) TID of the parent term.
*
* @return int
* TID of the newly created term or 0 on an error.
*/
function _bef_test_content_add_term($name, $parent = 0) {
$term = new stdClass();
// Features manages to create a vocab machine name that includes illegal
// characters (taxonomy-bef_test-location -- the hyphen is not allowed). So
// we use the VID of the vocab instead.
$term->vid = 2;
$term->parent = $parent;
$term->name = $name;
if (taxonomy_term_save($term) == SAVED_NEW) {
return $term->tid;
}
return 0;
}
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/2415363-breakpoints-menu_rebuild-13.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/ctools-readd_access_callback_params-2209775-24.patch
- http://drupal.org/files/issues/views_content-keyword-substitution-1910608-33.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -3,4 +3,8 @@ description = "Provides a datepicker for the 'Authored on' field on node forms."
core = 7.x
files[] = date_popup_authored.test
package = Date/Time
dependencies[] = date_popup
\ No newline at end of file
dependencies[] = date_popup
; Information added by drush on 2012-06-16
version = "7.x-1.1+2-dev"
project = "date_popup_authored"
datestamp = "1339821417"
\ No newline at end of file
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/defaultconfig-rebuild-2008178-14.patch
- http://drupal.org/files/issues/1900574.defaultconfig.undefinedindex_20.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/1754428-allow-node-export-alter.patch
- http://drupal.org/files/1757782-cannot-import-menu-hierarchy-8.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- https://drupal.org/files/issues/export_shorcuts_sets-986968-36.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/file_entity-file-size-limit-per-file-type-2530656-3.patch
- http://drupal.org/files/issues/2537982-fix-changing-file-scheme.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/jquery_update-autoheight_fix-2241973-7.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/linkchecker-hooks-1946252-4.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -3,4 +3,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/linkit-private_files_direct_link-2652300-2.patch
- http://drupal.org/files/issues/linkit-menu-links-2514928-2.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/manualcrop-two-crop-tools-2237835.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -4,4 +4,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/media-alt_and_title_double-2308487-9.patch
- http://drupal.org/files/issues/media-file-name-focus-2084287-2.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/no_exception_handling-2446199-1.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/media_youtube-remove_thumbnail_exception-2498493-23.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/array-to-object-on-update-1623536-26.patch
- http://www.drupal.org/files/issues/panelizer-search_api-2416505-3.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -4,4 +4,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/panels-1588212-10.patch
- https://www.drupal.org/files/issues/panels-ipe-remove-debug-2405733-1.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/pathauto-persist-936222-195-pathauto-state.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
The following patches have been applied to this project:
- http://drupal.org/files/issues/private-bypasses_content_type_edit_permissions-2660598-2.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/simplesamlphp_auth-admin-users-cannot-other-users-9291915-8.patch
- http://drupal.org/files/issues/simplesamlphp_auth-alter_data_before_writing-2148931-5.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
\ No newline at end of file
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment