function parallax_block_theme_registry_alter in Parallax Toolkit 7.3
File
- parallax_block/
parallax_block.module, line 51 - Enable Parallax effect for any block created by the user.
Code
function parallax_block_theme_registry_alter(&$theme_registry) {
$theme_registry['block']['theme paths'] = array(
0 => drupal_get_path('module', 'parallax_block') . '/templates',
);
$theme_registry['block']['theme path'] = drupal_get_path('module', 'parallax_block') . '/templates';
$theme_registry['block']['path'] = drupal_get_path('module', 'parallax_block') . '/templates';
// tell the theme system to use 'search-results.tpl.php' as the template file. Note that you do not include 'tpl.php'
$theme_registry['block']['template'] = 'parallax_block';
}