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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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) { |