Skip to content

Instantly share code, notes, and snippets.

View emmairwin's full-sized avatar
🏠
Working from home

Emma emmairwin

🏠
Working from home
View GitHub Profile
function MYMOD_drush_command(){
$items = array();
$items['loc-update'] = array(
'description' => dt('Run Location update'),
'arguments' => array(
'arg1' => dt('Optional User ID'),
),
'examples' => array(
'Standard example' => 'drush loc-update',
'Argument example' => 'drush loc-update 5',
@emmairwin
emmairwin / gist:9201099
Created February 25, 2014 01:50
Testing
<?php
//
// This module, taxonomy_menu_patch, should have a dependency of `tm_custom_paths`
function taxonomy_menu_patch_module_implements_alter(&$implementations, $hook) {
if ('form_taxonomy_form_vocabulary_alter' == $hook) {
// We need to ensure that taxonomy_menu_patch is that last one to be called
// as this way we can ensure that 'tm_custom_paths_vocabulary_validate'
// callback is removed from the $form's #validate callback stack.
$group = $implementations['taxonomy_menu_patch'];
<!DOCTYPE html>
<html lang="en">
<head>
<base href="https://popcorn.webmaker.org/templates/basic/">
<title>Popcorn Maker</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
@emmairwin
emmairwin / gist:5208680
Last active December 15, 2015 05:20 — forked from GenOpen/gist:5207927
<!DOCTYPE html><html><head>
<title>My Music - Credits</title>
</head>
<body>
<p>Credits Page</p>
</body></html>