function messaging_admin_test_post_form in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.admin.inc \messaging_admin_test_post_form()
Incoming message form
1 string reference to 'messaging_admin_test_post_form'
- messaging_menu in ./
messaging.module - Implementation of hook_menu()
File
- ./
messaging.admin.inc, line 109 - Messaging Framework - Admin UI
Code
function messaging_admin_test_post_form() {
global $user;
// Availbable sending methods
$form['method'] = array(
'#title' => t('Send method'),
'#type' => 'select',
'#options' => messaging_method_list(),
'#default_value' => messaging_method_default(),
);
$form['to'] = array(
'#type' => 'textfield',
'#title' => t('Destination'),
'#size' => 20,
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => $user->name,
'#description' => t('Enter a user name or a destination address for this method.'),
);
$form['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#size' => 20,
'#default_value' => t('Test message'),
);
$form['body'] = array(
'#type' => 'textarea',
'#title' => t('Body'),
'#default_value' => t("Hello.\n\nThis is a test message from !site_name", array(
'!site_name' => variable_get('site_name', 'Drupal'),
)),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Send'),
);
return $form;
}