protected function initiateEditor($section) {
.....
$userButtons[] = array(
'label' => 'RETURN to '.$sectionname,
'button_info' => 'onclick="goToPageX('.$section.');" style="color: GREEN; font-weight:bold;"');
.....
}
and the function goToPageX is
function goToPageX(X)
{
window.location="https://www.ballymenafestival.net/userpages/user/seditclasses.php?action=Proceed&cid="+X;
}
My question is: where do I put the function?