by Augusto Weiand.
Hello, i have a litle question, how I know when the edit mode is on? I developed some plugins for moodle, but they is in other folder and i just using the config.php of the moodle to do this chek.
With this I enable some list of features on the plugin... I try with
$edit = optional_param('edit', -1, PARAM_BOOL);
if ($edit == 1 && confirm_sesskey())
echo "hello world"
but doesn't works fine...