One of us is missing the point here. ;-)
I have code such as the following:
my %setupPrefs = (
'plugin_random_number_of_tracks' => {
'validate' => \&Slim::Web::Setup::validateInt,
'validateArgs' => [1, undef, 1],
},
'plugin_random_number_of_old_tracks' => {}
);
I want to apply validation to plugin_random_number_of_old_tracks that
accepts either an integer, or the empty string. If I use validateInt
as it is used above, it only accepts integers and so rejects the empty
string. I just wondered if there was a built in way of doing this, or
if I need to write my own validation function.
Max
dean Wrote:
> aeiou is not a number, so it should be handled the same as blank (and
> probably set to blank when entered.)
--
max.spicer
The wild things roared their terrible roars and gnashed their terrible
teeth
and rolled their terrible eyes and showed their terrible claws
but Max stepped into his private boat and waved good-bye
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta