Skip to content

Instantly share code, notes, and snippets.

View pixelite's full-sized avatar

Suzanne Dergacheva pixelite

View GitHub Profile
<?php
/******************************************************************************
* Exercise: Creating The mailfish.install File
*****************************************************************************/
/**
* @file
* Defines and manages the MailFish schema.
*/
@pixelite
pixelite / Vagrant-sphinx-pdflatex.md
Last active March 14, 2018 15:11
Creating a Vagrant vm with sphinx and pdflatex

First create a Vagrantfile:

vagrant init precise64

Then add the following to the new Vagrantfile:

config.vm.provision :shell, :inline => <<-EOT

Error message 1

Running vagrant up after upgrading Virtualbox to 4.24 (or something) now gives this error:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The box 'precise64-customized-sk' could not be found.

#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;
@pixelite
pixelite / my-modules.md
Last active December 24, 2015 08:19
Here's a list of modules I would suggest using when you're getting started with Drupal.
@pixelite
pixelite / migrate_programs.info
Last active September 12, 2015 19:11
migrate_programs.info
name = Migrate Programs
description = Migrate program information from CSV
core = 7.x
dependencies[] = migrate
files[] = migrate_programs.migrate.inc
@pixelite
pixelite / migrate_programs.migrate.inc.php
Last active September 22, 2015 15:45
migrate_programs.migrate.inc
<?php
/**
* @file
* A migration to import program nodes.
*
*/
class MigratePrograms extends Migration {
public function __construct($arguments) {
@pixelite
pixelite / migrate_programs.install.php
Last active September 12, 2015 19:05
migrate_programs.install
<?php
/**
* Implements hook_install().
*/
function migrate_programs_install() {
// Force migrations to be registered.
migrate_static_registration();
}
@pixelite
pixelite / migrate_programs.module.php
Created September 12, 2015 19:17
migrate_programs.module
<?php
/**
* Implements hook_migrate_api().
*/
function migrate_programs_migrate_api() {
return array(
'api' => 2,
'groups' => array(
'migrate_programs' => array(