mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-12 18:17:42 -04:00
Convert the slideshow module to use the new check environment and pre_deactivate api methods.
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class slideshow_event_Core {
|
||||
static function pre_deactivate($data) {
|
||||
if ($data->module == "rss") {
|
||||
$data->messages["warn"][] = t("The Slideshow module requires the RSS module.");
|
||||
}
|
||||
}
|
||||
|
||||
static function module_change($changes) {
|
||||
if (!module::is_active("rss") || in_array("rss", $changes->deactivate)) {
|
||||
site_status::warning(
|
||||
|
||||
Reference in New Issue
Block a user