Skip to content

Instantly share code, notes, and snippets.

View aprohl5's full-sized avatar

Austin Prohl aprohl5

  • Acquia
  • Boise, ID
View GitHub Profile
@aprohl5
aprohl5 / helpers
Created August 21, 2014 00:40
Useful things to add to projects
//shows views queries in view preview
$conf['views_ui_show_sql_query'] = 1;
<?php
/**
* Implements hook_preprocess_block().
*
* Adds a few helpful theming classes to a bean block:
* The bean's view mode, bundle (bean type), and the value of an arbitrary
* field, 'field_image_size'. Use this for beans placed using core blocks or
* the Context module.
*/
function THEME_preprocess_block(&$variables) {
@aprohl5
aprohl5 / sass square list
Created July 21, 2014 00:25
making a bulleted list
// Slideshow
.item-list ul.slides,
ul.slides,
.node ul.slides,
ul.epub-slideshow {
@extend .unstyled_lists;
li {
//@extend .unstyled_lists;
//list-style-type: square;
@aprohl5
aprohl5 / vr_core.module
Last active August 29, 2015 14:03
Just trying to make a block.
<?php
/**
* @file
* Code for the Volunteer Rally Core feature.
*/
include_once 'vr_core.features.inc';
/**
* Shift node type.
@aprohl5
aprohl5 / drush_bashrc
Created May 29, 2014 21:18
drush_bashrc
# -*- mode: shell-script; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
#
# Example bash aliases to improve your drush experience with bash.
# Copy this file to your home directory, rename and customize it to
# suit, and source it from your ~/.bash_profile file.
#
# Example - rename this to .drush_bashrc, and in your
# ~/.bash_profile add:
#
#
@aprohl5
aprohl5 / field_formatter_info_alter-variable_problems
Created March 25, 2014 17:56
field_formatter_info_alter-variable_problems
function linked_field_field_formatter_info_alter(&$infos) {
foreach ($infos as &$info) {
// Add a settings array if no settings were found.
if (!isset($info['settings']) || !is_array($info['settings'])) {
$info['settings'] = array();
}