Hi,
I have the problem to create Turn Editing on/off button in page header. I have tried to make it manually with the following code:
$buttonEdit='<form method="get" action="index.php">
<div><input type="hidden" name="edit" value="1" />
<input type="hidden" name="id" value="27" />
<input type="submit" value="My editing button" />
</div></form>';
$PAGE->print_header($title, $heading, $navigation, "", "", true, $buttonEdit);
However, this does not create the button defined as $buttonEdit, but some other button. How can I create my own button in this case?
General developer forum
creating my Turn Editing on button
This discussion has been locked so you can no longer reply to it.