From 13d3072f418835569f37f65b5055e5b3180fad2e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 16 Oct 2009 03:01:55 +0000 Subject: - Patch #356074 by chx, Damien Tournoud: provide a sequences API. --- modules/system/system.module | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index cb63659ec..cd35aa8ac 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -277,6 +277,19 @@ function system_rdf_namespaces() { ); } +/** + * Implement hook_hook_info(). + */ +function system_hook_info() { + $hooks['token_info'] = array( + 'group' => 'tokens', + ); + $hooks['tokens'] = array( + 'group' => 'tokens', + ); + return $hooks; +} + /** * Implement hook_entity_info(). */ @@ -2762,7 +2775,7 @@ function system_mail($key, &$message, $params) { $body = token_replace($context['message'], $context); $message['subject'] .= str_replace(array("\r", "\n"), '', $subject); - $message['body'][] = drupal_html_to_text($body); + $message['body'][] = $body; } function system_message_action_form($context) { -- cgit v1.2.3