You are here

function slack_install in Slack 7

Implements hook_install().

File

./slack.install, line 11
Install, update and uninstall functions for the Slack module.

Code

function slack_install() {
  variable_set('slack_webhook_url', '');
  variable_set('slack_icon_type', 'none');
  variable_set('slack_attachment_mrkdwn', array(
    'text' => '0',
    'pretext' => '0',
    'fields' => '0',
  ));
  variable_set('slack_file_types', array(
    'spaces' => '0',
    'snippets' => '0',
    'images' => '0',
    'gdocs' => '0',
    'zips' => '0',
    'pdfs' => '0',
  ));
  variable_set('slack_files_age_number', '1');
  variable_set('slack_files_age_unit', 'month');
}