Skip to content

Commit

Permalink
Warn that the module requires the EXIF module.
Browse files Browse the repository at this point in the history
  • Loading branch information
rWatcher committed May 15, 2011
1 parent de79623 commit 12b7816
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 3.0/modules/exif_gps/helpers/exif_gps_installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ static function deactivate() {
site_status::clear("exif_gps_needs_exif");
}

static function can_activate() {
$messages = array();
if (!module::is_active("exif")) {
$messages["warn"][] = t("The EXIF_GPS module requires the EXIF module.");
}
return $messages;
}

static function uninstall() {
// Delete the GPS table before uninstalling.
$db = Database::instance();
Expand Down
8 changes: 8 additions & 0 deletions 3.1/modules/exif_gps/helpers/exif_gps_installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ static function deactivate() {
site_status::clear("exif_gps_needs_exif");
}

static function can_activate() {
$messages = array();
if (!module::is_active("exif")) {
$messages["warn"][] = t("The EXIF_GPS module requires the EXIF module.");
}
return $messages;
}

static function uninstall() {
// Delete the GPS table before uninstalling.
$db = Database::instance();
Expand Down

0 comments on commit 12b7816

Please sign in to comment.