module == "tag") { $data->messages["warn"][] = t("The BatchTag module requires the Tags module."); } } static function module_change($changes) { // See if the Tags module is installed, // tell the user to install it if it isn't. if (!module::is_active("tag") || in_array("tag", $changes->deactivate)) { site_status::warning( t("The BatchTag module requires the Tags module. " . "Activate the Tags module now", array("url" => url::site("admin/modules"))), "batchtag_needs_tag"); } else { site_status::clear("batchtag_needs_tag"); } } }