From: Ralf Ertzinger Date: Wed, 24 Apr 2013 11:32:04 +0000 (+0200) Subject: Add default "enabled" property X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=b9e38bbb3dbffc4074f32f87445600d5a5985cb7 Add default "enabled" property --- diff --git a/videosite/Base.pm b/videosite/Base.pm index a1cacea..11c7fa6 100644 --- a/videosite/Base.pm +++ b/videosite/Base.pm @@ -23,6 +23,8 @@ sub new { @_, }; + # Add the 'enabled' property to all modules + $self->{_PARAMS}->{enabled} = [1, 'Whether the module is enabled']; bless($self, $class); $self->_prepare_parameters();