Commit bbf9d23b authored by helmo's avatar helmo

Issue #2099889 by helmo, ergonlogic: Add API docs for hook_drush_load().

parent 82eead92
......@@ -8,6 +8,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment