Skip to content

Instantly share code, notes, and snippets.

@flocondetoile
Last active February 23, 2016 15:06
Show Gist options
  • Save flocondetoile/40a0ac17cc674be601ef to your computer and use it in GitHub Desktop.
Save flocondetoile/40a0ac17cc674be601ef to your computer and use it in GitHub Desktop.
/**
* Implements hook_theme_registry_alter().
*/
function my_module_theme_registry_alter(&$theme_registry) {
$theme_registry['paragraph__paragraph_citation'] = $theme_registry['paragraph'];
$theme_registry['paragraph__paragraph_citation']['theme path'] = drupal_get_path('module', 'my_module');
$theme_registry['paragraph__paragraph_citation']['template'] = 'paragraph--paragraph-citation';
$theme_registry['paragraph__paragraph_citation']['path'] = drupal_get_path('module', 'my_module') . '/templates';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment