Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please correct me if I'm wrong but to customise the template I needed to copy it to my theme folder and then include the following in my template.php:
function <themename>_theme() {
return array(
'admin_message_message' => array(
'arguments' => array('node' => NULL),
'template' => '<pathtotemplate>admin-message-node',
),
);
}
Hope this helps someone and if I'm right it might be worth adding to the already helpful documentation,
Crom
Comments
Comment #1
dsnopekNo, all you need to do is copy the template into your theme folder and clear the theme cache - you don't need to return anything special from your hook_theme().
Hope that helps!
Regards,
David.