This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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: | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Code for the Volunteer Rally Core feature. | |
*/ | |
include_once 'vr_core.features.inc'; | |
/** | |
* Shift node type. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Slideshow | |
.item-list ul.slides, | |
ul.slides, | |
.node ul.slides, | |
ul.epub-slideshow { | |
@extend .unstyled_lists; | |
li { | |
//@extend .unstyled_lists; | |
//list-style-type: square; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//shows views queries in view preview | |
$conf['views_ui_show_sql_query'] = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example: ALTER TABLE `field_data_field_test_field` CHANGE `field_test_field_value` `field_test_field_value` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.front { | |
.header-container { | |
background-image: url("../images/screw.jpg"); | |
height:400px; | |
background-attachment: fixed; | |
background-position: 0% 0%; | |
background-repeat: no-repeat; | |
background-size: cover; | |
@include breakpoint(1px 499px) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 7 ]> <html class="lt-ie10 lt-ie9 lt-ie8 ie7" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 8 ]> <html class="lt-ie10 lt-ie9 ie8" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 9 ]> <html class="lt-ie10 ie9" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <!--<![endif]--> | |
<!--html.tpl.php--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mti_theme_preprocess_block(&$vars) { | |
switch ($vars['elements']['#block']->delta) { | |
case 'main_callboard': | |
die(print_r($vars)); | |
break; | |
} | |
} |
OlderNewer