You are here

function fastly_help_message in Fastly 7.2

Same name and namespace in other branches
  1. 7 fastly.admin.inc \fastly_help_message()

A reusable snippet.

Checks for error messages and sets up an extra message with a link to Zendesk.

2 calls to fastly_help_message()
fastly_register_form_validate in ./fastly.admin.inc
Implements hook_form_validate().
fastly_setup_form_validate in ./fastly.admin.inc
Implements hook_form_validate().

File

./fastly.admin.inc, line 555
Administrative forms for Fastly module.

Code

function fastly_help_message() {
  if (drupal_get_messages('error', FALSE)) {
    drupal_set_message(t('<a href="https://fastly.zendesk.com">Click here</a> if you need help.'), 'warning');
  }
}