TheBigK
Well-known member
I'm looking at this action in the XenForo_ControllerAdmin_Tag :
I'm wondering where is the 'tag_id' field in the XenForo_Input? I mean, I don't see any template (specifically tag_delete) defining it? How does XenForo know which tag I'm deleting?
PHP:
public function actionDelete()
{
if ($this->isConfirmedPost())
{
return $this->_deleteData(
'XenForo_DataWriter_Tag', 'tag_id',
XenForo_Link::buildAdminLink('tags')
);
}
else
{
$tagId = $this->_input->filterSingle('tag_id', XenForo_Input::UINT);
$tag = $this->_getTagOrError($tagId);
$viewParams = array(
'tag' => $tag
);
return $this->responseView('XenForo_ViewAdmin_Tag_Delete', 'tag_delete', $viewParams);
}
}
I'm wondering where is the 'tag_id' field in the XenForo_Input? I mean, I don't see any template (specifically tag_delete) defining it? How does XenForo know which tag I'm deleting?