Skip to content

Commit 3cae8be

Browse files
committed
Merge pull request #70 from arnested/api-skeleton
Add autoinsert template for .api.php files
2 parents 1545d07 + 0a23dc0 commit 3cae8be

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

drupal/autoinsert.el

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
(define-auto-insert '("\\.module" . "Drupal module file") 'drupal/autoinsert-insert-module-skeleton)
3131
(define-auto-insert '("\\.install" . "Drupal install file") 'drupal/autoinsert-insert-install-skeleton)
3232
(define-auto-insert '("\\.test" . "Drupal test file") 'drupal/autoinsert-insert-test-skeleton)
33+
(define-auto-insert '("\\.api.php" . "Drupal API file") 'drupal/autoinsert-insert-api-skeleton)
3334

3435
(define-skeleton drupal/autoinsert-insert-info-skeleton
3536
"Drupal info file skeleton."
@@ -95,6 +96,27 @@
9596
@ - "\n"
9697
"}\n")
9798

99+
(define-skeleton drupal/autoinsert-insert-api-skeleton
100+
"Drupal api.php file skeleton."
101+
nil
102+
"<?php\n"
103+
"\n"
104+
"/**\n"
105+
" * @file\n"
106+
" * Hooks provided by the " (drupal-module-name) " module.\n"
107+
" */\n"
108+
"\n"
109+
"/**\n"
110+
" * @addtogroup hooks\n"
111+
" * @{\n"
112+
" */\n"
113+
"\n"
114+
@ - "\n"
115+
"\n"
116+
"/**\n"
117+
" * @} End of \"addtogroup hooks\".\n"
118+
" */\n")
119+
98120

99121

100122
(provide 'drupal/autoinsert)

0 commit comments

Comments
 (0)