After hours trying to figure it out, no way ! What am I doing wrong ?
function alter_appointment_message_form_node_form_alter(&$form,&$form_state,$form_id) { if($form['#node']->type=="appointment_request") { drupal_get_messages('status'); // Flush default simplenews status message drupal_set_message(t('An appointment has been requested'), 'status'); } }