function slack_get_default_channel in Slack 6
Same name and namespace in other branches
- 7 includes/slack.api.inc \slack_get_default_channel()
Get default team channel.
Return value
string Get default team channel
2 calls to slack_get_default_channel()
- 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 92 - Slack integration module API functions.
Code
function slack_get_default_channel() {
$channel = variable_get('slack_channel', SLACK_DEFAULT_CHANNEL);
if (empty($channel)) {
$channel = SLACK_DEFAULT_CHANNEL;
}
return $channel;
}