(texi2html.info)Redefining functions
5.2 Redefining functions in initialization files
================================================
To redefine a function you must replace the corresponding funtion
reference with a reference on your function. Thus you should write
your function, give it a name you are certain it is unique in the
`Texi2HTML::Config' namespace, and override the value of the function
reference with your own function reference. When another function from
the main program (or from another functions of an initialization file)
calls the reference, your function will be used.
For example the function reference corresponding with the function
called when doing an anchor is called `$anchor'. Thus if you want to
override the corresponding function you could write:
# override the function reference
$anchor = \&my_own_function;
# the function reference now refers to
sub my_own_function {
# process arguments and return an html anchor
}
automatically generated by info2www version 1.2.2.9