Commit 0bc3930f authored by ergonlogic's avatar ergonlogic

Update site_data example extension with new load method.

parent 433fe6ee
......@@ -6,5 +6,6 @@
* Checks if the corresponsing Hosting Feature is enabled.
*/
function site_data_drush_load() {
return in_array('site_data', drush_get_option('hosting_features', array()));
$features = drush_get_option('hosting_features', array());
return array_key_exists('site_data', $features) && $features['site_data'];
}
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