You are here

function slack_get_default_username in Slack 6

Same name and namespace in other branches
  1. 7 includes/slack.api.inc \slack_get_default_username()

Get default Slack bot username.

Return value

string Get default Slack bot username

2 calls to slack_get_default_username()
slack_rules_action_info in ./slack.rules.inc
Implements hook_rules_action_info().
slack_send_message in includes/slack.api.inc
Send message to the Slack.

File

includes/slack.api.inc, line 106
Slack integration module API functions.

Code

function slack_get_default_username() {
  $username = variable_get('slack_username', SLACK_DEFAULT_USERNAME);
  if (empty($username)) {
    $username = SLACK_DEFAULT_USERNAME;
  }
  return $username;
}