branch: elpa/drupal-mode
commit e65bf476cdda6ae48d52a0ffa53edaddcf3ac3fb
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Fixed module version for Drupal core modules.
---
drupal-mode.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index edbf9c693a..dc591f63f5 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -517,7 +517,10 @@ the location of DRUPAL_ROOT."
(goto-char (point-min))
(when (re-search-forward "^project *=" nil t)
(re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
- (setq project (match-string-no-properties 1)))))
+ (setq project (match-string-no-properties 1)))
+ (when (and (string= project "drupal")
+ (string= module-version "VERSION"))
+ (setq module-version version))))
(dir-locals-set-class-variables 'drupal-module `((nil . ((drupal-module
. ,(file-name-nondirectory
(file-name-sans-extension module)))
(drupal-version
. ,version)