function messaging_debug_post_form in Messaging 6.2
Same name and namespace in other branches
- 6 messaging_debug/messaging_debug.module \messaging_debug_post_form()
- 6.3 messaging_debug/messaging_debug.module \messaging_debug_post_form()
Incoming message form
2 string references to 'messaging_debug_post_form'
- messaging_debug_block in messaging_debug/
messaging_debug.module - Implementation of hook_block()
- messaging_debug_menu in messaging_debug/
messaging_debug.module - Implementation of hook_menu().
File
- messaging_debug/
messaging_debug.module, line 92 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_debug_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,
);
$form['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#size' => 20,
);
$form['body'] = array(
'#type' => 'textarea',
'#title' => t('Body'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Send'),
);
return $form;
}