function panopoly_admin_theme_registry_alter in Panopoly 7
Implements hook_theme_registry_alter().
File
- modules/
panopoly/ panopoly_admin/ panopoly_admin.module, line 102
Code
function panopoly_admin_theme_registry_alter(&$registry) {
if (isset($registry['panels_add_content_modal'])) {
// Put our preprocess function before the default one from Panels.
$index = array_search('template_preprocess_panels_add_content_modal', $registry['panels_add_content_modal']['preprocess functions']);
if ($index !== FALSE) {
array_splice($registry['panels_add_content_modal']['preprocess functions'], $index, 0, 'panopoly_admin_prepreprocess_panels_add_content_modal');
}
}
}