You are here

function slack_get_default_attachment_mrkdwn in Slack 7

Get default Slack attachment mrkdwn value.

Return value

array Get default Slack attachment mrkdwn value.

1 call to slack_get_default_attachment_mrkdwn()
slack_rules_send_message_action in ./slack.rules.inc
Rules action for sending a message to the Slack.

File

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

Code

function slack_get_default_attachment_mrkdwn() {
  $mrkdwn = variable_get('slack_attachment_mrkdwn');
  $attachment_mrkdwn = array();
  foreach ($mrkdwn as $option => $value) {
    if ($value != '0') {
      $attachment_mrkdwn[] = $option;
    }
  }
  return $attachment_mrkdwn;
}