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 template_preprocess_field(). | |
* | |
* Adds classes to field based on field name. | |
* | |
* Good options are: | |
* - Field name: $vars['element']['#field_name']. | |
* - Content type: $vars['element']['#bundle']. |
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_page_alter(). | |
* Moves field_title_image from node to 'featured' region. | |
* Moves secondary content from node (downloads, links) to 'sidebar-two' region. | |
*/ | |
function pufdk_page_alter(&$page) { | |
// Declare variables | |
$image = array(); | |
$secondary_content = array(); |
NewerOlder