Last active
June 27, 2018 18:01
-
-
Save markisatacomputer/98321266187f800b246572102232dd62 to your computer and use it in GitHub Desktop.
add terms to drupal 7 taxonomy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PANTHEON_ENV="$1" | |
echo $'$phenomena = array( | |
"afterimage", | |
"albedo", | |
"amplification", | |
"atoms and particles", | |
"attention", | |
"bernouli effect ", | |
"centripical force", | |
"change of state", | |
"Coandă effect", | |
"Cognitive Sciences", | |
"color", | |
"color - complementary", | |
"color mixing", | |
"color mixing - subtractive", | |
"color seperation", | |
"condensation", | |
"conservation of angular momentum", | |
"cues - amibiguos", | |
"cues - dominant", | |
"decomposition", | |
"diffraction", | |
"dispersion", | |
"economic exchange", | |
"electromagnetic forces", | |
"electromagnetic radiation spectrum", | |
"embryonic development", | |
"emotion", | |
"energy - conservation of energy", | |
"energy - transformation of energy", | |
"energy - kinetic ", | |
"energy - potential", | |
"evaporation", | |
"fatigue", | |
"feedback", | |
"ferromagnetism", | |
"fragmentation", | |
"friction", | |
"Frequency - Natural Frequency", | |
"Ganzfeld effect ", | |
"gravitational forces", | |
"gyroscopics", | |
"hand-eye coordination ", | |
"harmonics", | |
"heat transfer", | |
"image formation", | |
"images - real", | |
"images - virtual", | |
"intertia - linear", | |
"inertia - rotaional", | |
"interference", | |
"information and noise", | |
"ionization", | |
"Iridescence", | |
"judgement", | |
"lateral inhibition", | |
"light production", | |
"magnetization", | |
"melting", | |
"mental activity", | |
"mental tasks", | |
"metacognition", | |
"microscopy", | |
"motion detection", | |
"motion - accelerated motion - gravitational", | |
"motion - accelerated motion - linear", | |
"motion - accelerated motion - rotational", | |
"motion - composition of perpeindicular motion", | |
"motion - pendular motion", | |
"motion - periodic motion", | |
"motion - rotational motion", | |
"motion - simple harmonic motion", | |
"motion - vsual motion detection", | |
"nodes and antinodes", | |
"nonlinear behavior", | |
"patterns", | |
"parabolas", | |
"parabolic mirrors", | |
"parallax", | |
"perception - color", | |
"perception - sound", | |
"perception - spatial", | |
"persistence of vision", | |
"phase", | |
"phosphoresence", | |
"photosynthesis", | |
"pressure", | |
"prisoner\'s dilemma", | |
"projections", | |
"reflection", | |
"refraction", | |
"reproduction", | |
"resonance", | |
"resource sharing", | |
"rhythm", | |
"scattering", | |
"shadows", | |
"size-distance", | |
"social dllemma", | |
"surface tension of liquids", | |
"symmetry", | |
"techniques to make the invisible visible", | |
"thin films", | |
"torque", | |
"tragedy of the commons", | |
"turbulent flow", | |
"visual edge effects", | |
"vortices", | |
"wave excitation", | |
"waves - standing waves", | |
"waves - transverse waves", | |
"waveguide", | |
"wind", | |
); | |
$vocab = taxonomy_vocabulary_machine_name_load("exhibit_phenomena"); | |
foreach ($phenomena as $name) { | |
$term = new stdClass(); | |
$term->name = $name; | |
$term->vid = $vocab->vid; | |
taxonomy_term_save($term); | |
} | |
' | drush @pantheon.$PANTHEON_ENV php-script - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment