• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Found function linked to a button click

#1
Hi guys,

how can i find a function linked to a button click. For example the "Save template modification" button on click redirect to link "/forum/admin.php?template-modifications/1/save". How can i find the function on php code called by this link?
Thanks.
 

Chris D

XenForo developer
Staff member
#2
It's a controller action, so you'd expect to see that in library/XenForo/ControllerAdmin.

It's a public template modification so you would be looking for TemplateModification.php.

That class extends TemplateModificationAbstract.php.

The specific code for saving a template modification would be public function actionSave() (because of /save/ in the url) and may appear in TemplateModification.php and/or TemplateModificationAbstract.php.