branch: elpa/drupal-mode
commit 6c76c15e7cadbcafda7073363ca66cb6e9af8dfa
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Added auto-insert skeleton for .install files.
---
drupal/autoinsert.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drupal/autoinsert.el b/drupal/autoinsert.el
index 8776a2a577..0cfd9b8486 100644
--- a/drupal/autoinsert.el
+++ b/drupal/autoinsert.el
@@ -28,6 +28,7 @@
(define-auto-insert '("\\.info" . "Drupal info file")
'drupal/autoinsert-insert-info-skeleton)
(define-auto-insert '("\\.module" . "Drupal module file")
'drupal/autoinsert-insert-module-skeleton)
+(define-auto-insert '("\\.install" . "Drupal install file")
'drupal/autoinsert-insert-install-skeleton)
(define-skeleton drupal/autoinsert-insert-info-skeleton
"Drupal info file skeleton."
@@ -58,6 +59,17 @@
" */\n"
@ "\n")
+(define-skeleton drupal/autoinsert-insert-install-skeleton
+ "Drupal install file skeleton."
+ nil
+ "<?php\n"
+ "\n"
+ "/**\n"
+ " * @file\n"
+ " * Install, update and uninstall functions for the " (drupal-module-name) "
module.\n"
+ " */\n"
+ @ - "\n")
+
(provide 'drupal/autoinsert)