A simple function to help newbie MT hackers

| No Comments
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)});
    }
}

Leave a comment

About this Entry

This page contains a single entry by MikeT published on January 1, 2008 3:42 AM.

Some ideas for Movable Type was the previous entry in this blog.

Let's get one thing straight about the export script is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.