You are here

function better_messages_process_autoclose in Better Messages 7

Helper function to process auto close

Return value

bool

1 call to better_messages_process_autoclose()
theme_better_messages in ./better_messages.module

File

./better_messages.module, line 193

Code

function better_messages_process_autoclose($message) {
  $settings = better_messages_get_settings();
  if (array_key_exists('error', $message)) {
    if ($settings['disable_autoclose']) {
      return true;
    }
    else {
      return false;
    }
  }
  else {
    return false;
  }
}