Skip to content

Instantly share code, notes, and snippets.

View lhenze's full-sized avatar

Laura Henze lhenze

  • New York University
  • New York, NY
  • 06:43 (UTC -04:00)
View GitHub Profile
@sebz
sebz / grunt-hugo-lunrjs.md
Last active July 21, 2025 21:38
hugo + gruntjs + lunrjs = <3 search
@alienresident
alienresident / drush-shortcuts.md
Last active July 1, 2021 23:28
Useful Drush Commands

Drush Shortcuts

A list of Drush shortcuts I find useful for Drupal development.

Dealing with Users

Creating a one-time login link

drush uli
function themename_menu_link(&$variables) {
$element = $variables['element'];
$sub_menu = '';
$element['#attributes']['data-menu-parent'] = $element['#original_link']['menu_name'] . '-' . $element['#original_link']['depth'];
if ($element['#below']) {
$sub_menu = drupal_render($element['#below']);
}