[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_fo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al. |
Date: |
Tue, 25 Jan 2022 10:59:36 -0500 (EST) |
branch: elpa/drupal-mode
commit cd3e68f6b3e51cafaf3d279aeef68d313b80d629
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Better support for hook_form_FORM_ID_alter() et al.
---
drupal-mode.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index c061ffa8af..ffbc81c493 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -1,6 +1,6 @@
;;; drupal-mode.el --- Advanced minor mode for Drupal development
-;; Copyright (C) 2012 Arne Jørgensen
+;; Copyright (C) 2012, 2013 Arne Jørgensen
;; Author: Arne Jørgensen <arne@arnested.dk>
;; URL: https://github.com/arnested/drupal-mode
@@ -411,9 +411,12 @@ should save your files with unix style end of line."
(funcall drupal-symbol-collection)
drupal-symbol-collection)
nil nil "hook_"))
+ '(setq v2 (let ((case-fold-search nil))
+ (when (string-match "\\([A-Z][A-Z_]*[A-Z]\\)" v1)
+ (concat " for " (match-string 1 v1) "()"))))
(drupal-ensure-newline)
"/**\n"
- " * Implements " v1 "().\n"
+ " * Implements " v1 "()" v2 ".\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"
" " @ _ "\n"
- [nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace., (continued)
- [nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode aa87684203 048/308: Added `require' for supported libraries., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 897fbfb4a5 082/308: Added small optimization for byte compiler., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a53c312da1 089/308: Improved info file auto-insert skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 42fc725add 092/308: Hardened match for code sniffer standard., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7866012679 103/308: Fixed link to other drupal-modes at Gitub, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8951d9a7e8 105/308: Extended documentation of `drupal/flymake-phpcs-standard'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3df6f6725c 110/308: Add contributing guidelines., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f0ae32d88a 111/308: Added first take at a `drush-make-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode a22be38d3c 114/308: Read FORM_ID from minibuffer in `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 71f3ba70fe 116/308: Added .inc files as `php-mode` as well., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2245c415ee 123/308: Added check for `drupal-drush-program` is set., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 213ebf5e65 124/308: Fixed eshell site-alias expansion for aliases beginning with @. Suggestion by Tassilo Horn:, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f4a4985134 132/308: Check if our checker can be used before enforcing it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2ad9decdb7 136/308: Merge branch 'develop' into pr/35, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ec024f1e2a 148/308: `drupal/phpcs-dont-show-trailing-whitespace` common to flycheck and flymake., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode da62dbfc22 149/308: Added missing EOL., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f77dd902b4 009/308: Add :link to defcustom. Part of #9., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e4d21708db 010/308: Untabify and indent., ELPA Syncer, 2022/01/25