I have a few doubts about the flow of code once the user clicks save/preview/show diff buttons.
I have made changes to our locally installed wiki 1)Added a reference button in the edit toolbar which when clicked pulls up a pop up where the user can enter reference information. Once user cliks submit in this form the information gets entered to the reference table in wikidb.
What i need to understand is, how should i proceed when user clicks eithr the save/preview button. I have a slight idea that only after user clicks save page, information should get entered to the referencelinks table which is a replica of the imagelinks table.
I cannot figure out at what point and where in the code i can add information to the referencelinks table. Or should this be done when user clicks the preview page button?
I appreciate your time and help.
Amruta
Quoting Tim Starling t.starling@physics.unimelb.edu.au:
Amruta Lonkar wrote:
Hi,
I am trying to find whihc function is called when user hits the save button
on
edit page and in whihc file the button click for save is checked.
Any help appreciated.
Thanks,
Amruta
Article::save(), in Article.php. Submitting the form generates a POST request to index.php with action=save in the query string. This action is dispatched to the Article object.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta