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
name = "Custom tokens" | |
description = "Custom module to provide custom tokens" | |
package = "Custom" | |
core = 7.x |
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
<h1><?php print str_replace('[', '<span>', str_replace(']', '</span>', $h1_title)); ?></h1> | |
of <h1><?php print str_replace(array('[', ']'), array('<span>', '</span>'), $h1_title); ?></h1> |
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
/** | |
* Implements hook_taxonomy_menu_block_tree_alter | |
*/ | |
function custom_taxonomy_menu_block_tree_alter(&$tree, $config) { | |
switch($config) { | |
// add icon image to cache of TMB | |
case '2': | |
foreach($tree as $tid => $term) { |
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 | |
/** | |
* Implementation of hook_block_info(). | |
*/ | |
function custom_block_back_to_overview_block_info() { | |
$blocks = array(); | |
$blocks['back-to-overview'] = array( | |
'info' => t('CB - Back to overview'), |
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
/* | |
* Add striping | |
* | |
*/ | |
function stripe(el){ | |
var count = 0; | |
$(el).each(function(){ | |
count++; | |
var classEven = ''; | |
var classOdd = ''; |