Warn that MetaDescription requires the Tags module.
This commit is contained in:
parent
c2ae530e45
commit
44e74e7321
|
@ -31,4 +31,10 @@ class metadescription_event_Core {
|
||||||
site_status::clear("metadescription_needs_tag");
|
site_status::clear("metadescription_needs_tag");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function pre_deactivate($data) {
|
||||||
|
if ($data->module == "tag") {
|
||||||
|
$data->messages["warn"][] = t("The MetaDescription module requires the Tags module.");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,14 @@ class metadescription_installer {
|
||||||
site_status::clear("metadescription_needs_tag");
|
site_status::clear("metadescription_needs_tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function can_activate() {
|
||||||
|
$messages = array();
|
||||||
|
if (!module::is_active("tag")) {
|
||||||
|
$messages["warn"][] = t("The MetaDescription module requires the Tags module.");
|
||||||
|
}
|
||||||
|
return $messages;
|
||||||
|
}
|
||||||
|
|
||||||
static function uninstall() {
|
static function uninstall() {
|
||||||
module::delete("metadescription");
|
module::delete("metadescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,4 +31,10 @@ class metadescription_event_Core {
|
||||||
site_status::clear("metadescription_needs_tag");
|
site_status::clear("metadescription_needs_tag");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function pre_deactivate($data) {
|
||||||
|
if ($data->module == "tag") {
|
||||||
|
$data->messages["warn"][] = t("The MetaDescription module requires the Tags module.");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,14 @@ class metadescription_installer {
|
||||||
site_status::clear("metadescription_needs_tag");
|
site_status::clear("metadescription_needs_tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function can_activate() {
|
||||||
|
$messages = array();
|
||||||
|
if (!module::is_active("tag")) {
|
||||||
|
$messages["warn"][] = t("The MetaDescription module requires the Tags module.");
|
||||||
|
}
|
||||||
|
return $messages;
|
||||||
|
}
|
||||||
|
|
||||||
static function uninstall() {
|
static function uninstall() {
|
||||||
module::delete("metadescription");
|
module::delete("metadescription");
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user