Skip to content

Commit

Permalink
Fix _bricks_theme_registry_alter_bundle()
Browse files Browse the repository at this point in the history
  • Loading branch information
tonystar committed Nov 21, 2015
1 parent 610b29d commit 11396b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bricks.module
Expand Up @@ -16,8 +16,12 @@ function bricks_theme() {
/**
* Helper function for hook_theme_registry_alter().
*/
function _bricks_theme_registry_alter_bundle(&$theme_registry, $bundle) {
$theme_registry['brick__' . $bundle] = array('template' => 'brick--' . $bundle) + $theme_registry['brick'];
function _bricks_theme_registry_alter_bundle(&$theme_registry, $module, $bundle) {
$theme_registry['brick__' . $bundle] = array(
'theme path' => drupal_get_path('module', $module),
'template' => 'brick--' . $bundle,
'path' => drupal_get_path('module', $module) . '/templates',
) + $theme_registry['brick'];
}

/**
Expand Down

0 comments on commit 11396b2

Please sign in to comment.