Not a developer? Go to MovableType.com

Documentation

pre_run

The pre_run callback is invoked at the beginning of the request, prior to invoking the mode handler. It is also invoked prior to the determining of the application mode that will be used to process the request, so this callback makes it possible for example to alter the mode that will ultimately be used.

Input Parameters

  • $cb - a reference to the current MT::Callback object handling this event.
  • $app - a reference to the MT::App::CMS object processing this request.

Return Value

None.

Example Handler

sub pre_run_handler {
    my ($cb, $app) = @_;
    # do something
}
Back

Leave a Comment