We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 708f318 + 0cd2412 commit b59ad24Copy full SHA for b59ad24
drupal-mode.el
@@ -556,7 +556,8 @@ buffer."
556
(user-error "%s already exists in file." (replace-regexp-in-string "^hook" (drupal-module-name) v2)))
557
;; User error if the hook is already inserted elsewhere.
558
(when (and drupal-get-function-args
559
- (funcall drupal-get-function-args (replace-regexp-in-string "^hook" (drupal-module-name) v2)))
+ (ignore-errors
560
+ (funcall drupal-get-function-args (replace-regexp-in-string "^hook" (drupal-module-name) v2))))
561
(user-error "%s already exists elsewhere." (replace-regexp-in-string "^hook" (drupal-module-name) v2)))
562
(drupal-ensure-newline)
563
"/**\n"
0 commit comments