function easychart_theme_registry_alter in Easychart 7.2
Same name and namespace in other branches
- 7 easychart.module \easychart_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- ./
easychart.module, line 679 - Easychart module file.
Code
function easychart_theme_registry_alter(&$theme_registry) {
// Add 'html--editor-easychart.tpl.php' template file
$theme_registry['html__easychart_charts'] = array();
$theme_registry['html__easychart_charts']['template'] = 'html--easychart-charts';
$theme_registry['html__easychart_charts']['path'] = drupal_get_path('module', 'easychart') . "/theme";
$theme_registry['html__easychart_charts']['render element'] = 'html';
$theme_registry['html__easychart_charts']['base hook'] = 'html';
$theme_registry['html__easychart_charts']['type'] = 'module';
$theme_registry['html__easychart_charts']['theme path'] = drupal_get_path('module', 'easychart') . "/theme";
// Add 'page--editor-easychart.tpl.php' template file
$theme_registry['page__easychart_charts'] = array();
$theme_registry['page__easychart_charts']['template'] = 'page--easychart-charts';
$theme_registry['page__easychart_charts']['path'] = drupal_get_path('module', 'easychart') . "/theme";
$theme_registry['page__easychart_charts']['render element'] = 'page';
$theme_registry['page__easychart_charts']['base hook'] = 'page';
$theme_registry['page__easychart_charts']['type'] = 'module';
$theme_registry['page__easychart_charts']['theme path'] = drupal_get_path('module', 'easychart') . "/theme";
$theme_registry['page__easychart_charts']['override preprocess functions'] = TRUE;
}