First create a Vagrantfile:
vagrant init precise64
Then add the following to the new Vagrantfile:
config.vm.provision :shell, :inline => <<-EOT
<?php | |
/****************************************************************************** | |
* Exercise: Creating The mailfish.install File | |
*****************************************************************************/ | |
/** | |
* @file | |
* Defines and manages the MailFish schema. | |
*/ |
First create a Vagrantfile:
vagrant init precise64
Then add the following to the new Vagrantfile:
config.vm.provision :shell, :inline => <<-EOT
#Demo: Creating a Zen Sub-theme and Using Zen Grids
##Add and enable Zen
drush dl zen
drush en zen
drush cc all
#navigation #main-menu li { | |
-webkit-border-radius: 7px | |
-moz-border-radius: 7px; | |
border-radius: 7px; | |
background: green; | |
box-sizing: border-box; | |
width: 45%; | |
float: left; | |
margin: 5px; | |
padding: 10px 0; |
name = Migrate Programs | |
description = Migrate program information from CSV | |
core = 7.x | |
dependencies[] = migrate | |
files[] = migrate_programs.migrate.inc |
<?php | |
/** | |
* @file | |
* A migration to import program nodes. | |
* | |
*/ | |
class MigratePrograms extends Migration { | |
public function __construct($arguments) { |
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function migrate_programs_install() { | |
// Force migrations to be registered. | |
migrate_static_registration(); | |
} |
<?php | |
/** | |
* Implements hook_migrate_api(). | |
*/ | |
function migrate_programs_migrate_api() { | |
return array( | |
'api' => 2, | |
'groups' => array( | |
'migrate_programs' => array( |