branch: elpa/drupal-mode
commit 88d744068c86ba7f7d113a18be8a897a8554555a
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>

    Fixed regexp.
---
 drupal-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 6e6de21532..e59ba38fe8 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -398,7 +398,7 @@ function arguments.")
   "/**\n"
   " * Implements " v1 "().\n"
   " */\n"
-  "function " (replace-regexp-in-string "hook" (drupal-module-name) v1) "(" 
(when drupal-get-function-args (funcall drupal-get-function-args v1 
(drupal-major-version))) ") {\n"
+  "function " (replace-regexp-in-string "^hook" (drupal-module-name) v1) "(" 
(when drupal-get-function-args (funcall drupal-get-function-args v1 
(drupal-major-version))) ") {\n"
   "  " @ _ "\n"
   "}\n")
 

Reply via email to