function hook_drush_load

7.x-3.x provision.api.php hook_drush_load()

Implements hook_drush_load(). Deprecated. Removed in Drush 7.x.

In a drush contrib check if the frontend part (hosting_hook variant) is enabled.

1 function implements hook_drush_load()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

dns_drush_load in dns/dns.drush.load.inc
Implements hook_drush_load(). Deprecated. Removed in Drush 7.x.

File

./provision.api.php, line 16
Provision API

Code

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.
}