summaryrefslogtreecommitdiffstats
path: root/provision.api.php
diff options
context:
space:
mode:
authorHerman van Rink2013-10-10 13:31:20 (GMT)
committerHerman van Rink2013-10-10 13:31:20 (GMT)
commitbbf9d23b0553c6847da475833ed75951b1bfdd91 (patch)
treede9c1573f353bc80e449b4df8abcfb7712f7c4f3 /provision.api.php
parent82eead929adff3d44745eec6ce4643854069c175 (diff)
Issue #2099889 by helmo, ergonlogic: Add API docs for hook_drush_load().
Diffstat (limited to 'provision.api.php')
-rw-r--r--provision.api.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/provision.api.php b/provision.api.php
index cfe1e85..99a4617 100644
--- a/provision.api.php
+++ b/provision.api.php
@@ -9,6 +9,19 @@
/**
+ * Implements hook_drush_load().
+ *
+ * In a drush contrib check if the frontend part (hosting_hook variant) is enabled.
+ */
+function hook_drush_load() {
+ $features = drush_get_option('hosting_features', array());
+ $hook_feature_name = 'something';
+
+ return array_key_exists($hook_feature_name, $features) // Front-end module is installed...
+ && $features[$hook_feature_name]; // ... and enabled.
+}
+
+/**
* Advertise what service types are available and their default
* implementations. Services are class Provision_Service_{type}_{service} in
* {type}/{service}/{service}_service.inc files.