For me, one of the biggest problems with figuring out MT is figuring out what what in the @_ array. This little function may be useful for others who are in bad shape like me, to use as a skeleton for figuring out what is being passed to their functions by the MT framework. All of it goes into the system activity log.
sub debug{
require MT;
my $index = 0;
foreach my $item (@_) {
MT->log({message => $index++ . " " . ref($item)});
}
}
sub debug{
require MT;
my $index = 0;
foreach my $item (@_) {
MT->log({message => $index++ . " " . ref($item)});
}
}
