You’d have to modify the code to check for the sent value. If you’re really worried about it, you might want to consider creating a cron job on the server to manually set the values you desire. Would you like me to move this thread to the Development forum?
Ok, no need to move the thread, I just wanted to know if there was a standard way to do it. I’ve decided to modify the member module, here’s the change I’ve made:
expressionengine/modules/member/mod.member_settings.php : 1307
/** -------------------------------------
/** Assign the query data
/** -------------------------------------*/
$data = array(
'email' => $_POST['email'],
'accept_admin_email' => (isset($_POST['accept_admin_email'])) ? 'y' : 'n',
'accept_user_email' => (isset($_POST['accept_user_email'])) ? 'y' : 'n',
'notify_by_default' => (isset($_POST['notify_by_default'])) ? 'y' : 'n',
'notify_of_pm' => (isset($_POST['notify_of_pm'])) ? 'y' : 'n',
'smart_notifications' => (isset($_POST['smart_notifications'])) ? 'y' : 'n'
);
Changed to
'accept_user_email' => (isset($_POST['accept_user_email'])) ? 'n' : 'n',
'notify_by_default' => (isset($_POST['notify_by_default'])) ? 'n' : 'n',
'notify_of_pm' => (isset($_POST['notify_of_pm'])) ? 'n' : 'n',
'smart_notifications' => (isset($_POST['smart_notifications'])) ? 'n' : 'n'