module == "tag") { $data->messages["warn"][] = t("The DisplayTags module requires the Tags module."); } } static function module_change($changes) { if (!module::is_active("tag") || in_array("tag", $changes->deactivate)) { site_status::warning( t("The DisplayTags module requires the Tags module. Activate the Tags module now", array("url" => html::mark_clean(url::site("admin/modules")))), "displaytags_needs_tag"); } else { site_status::clear("displaytags_needs_tag"); } } }