function dialog_comment_theme_registry_alter in Dialog 7.2
Implement hook_theme_registry_alter().
File
- modules/
dialog_comment/ dialog_comment.module, line 59 - Provides dialog integration for comment.module.
Code
function dialog_comment_theme_registry_alter(&$theme_registry) {
// Replace the 'comment_post_forbidden' theme function with one that displays
// authentication forms using dialogs.
if (!empty($theme_registry['comment_post_forbidden'])) {
$theme_registry['comment_post_forbidden']['theme path'] = drupal_get_path('module', 'dialog_comment');
$theme_registry['comment_post_forbidden']['function'] = 'dialog_comment_comment_post_forbidden';
}
}