function wf_crm_webform_preprocess::setMessage in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 7.5 includes/wf_crm_webform_preprocess.inc \wf_crm_webform_preprocess::setMessage()
Wrapper for drupal_set_message Ensures we only set the message on the first page of the node display
Parameters
$message:
string $type:
4 calls to wf_crm_webform_preprocess::setMessage()
- wf_crm_webform_preprocess::alterForm in includes/
wf_crm_webform_preprocess.inc - Alter front-end of webforms: Called by hook_form_alter() when rendering a civicrm-enabled webform Add custom prefix. Display messages. Block users who should not have access. Set webform default values.
- wf_crm_webform_preprocess::loadMemberships in includes/
wf_crm_webform_preprocess.inc - Load existing membership information and display a message to members.
- wf_crm_webform_preprocess::populateEvents in includes/
wf_crm_webform_preprocess.inc - Check if events are open to registration and take appropriate action
- wf_crm_webform_preprocess::showNotYouMessage in includes/
wf_crm_webform_preprocess.inc - Displays the admin-defined message with "not you?" link to known contacts
File
- includes/
wf_crm_webform_preprocess.inc, line 821
Class
Code
function setMessage($message, $type = 'status') {
if (node_is_page($this->node) && empty($_POST)) {
drupal_set_message($message, $type, FALSE);
}
}