function slack_send_test_message_form in Slack 6
Same name and namespace in other branches
- 7 includes/pages/slack.pages.inc \slack_send_test_message_form()
Slack test message form.
1 string reference to 'slack_send_test_message_form'
- slack_menu in ./
slack.module - Implements hook_menu().
File
- includes/
pages/ slack.pages.inc, line 11 - Slack module page functions.
Code
function slack_send_test_message_form(&$form_state) {
$form['slack_test_channel'] = array(
'#type' => 'textfield',
'#title' => t('Channel'),
'#default_value' => variable_get('slack_channel', SLACK_DEFAULT_CHANNEL),
);
$form['slack_test_username'] = array(
'#type' => 'textfield',
'#title' => t('Username'),
'#default_value' => variable_get('slack_username', SLACK_DEFAULT_USERNAME),
);
$form['slack_test_message'] = array(
'#type' => 'textarea',
'#title' => t('Message'),
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Send message'),
);
return $form;
}