function messaging_method_list in Messaging 5
Same name and namespace in other branches
- 6.4 messaging.module \messaging_method_list()
- 6 messaging.module \messaging_method_list()
- 6.2 messaging.module \messaging_method_list()
- 6.3 messaging.module \messaging_method_list()
- 7 messaging.module \messaging_method_list()
List sending methods
Parameters
$account: Optional user account, for checking permissions against this account
5 calls to messaging_method_list()
- messaging_admin_message_form in ./
messaging.module - Edit message formats
- messaging_admin_settings in ./
messaging.module - Admin settings form
- messaging_admin_template_overview in ./
messaging.module - Overview page for message templates
- messaging_requirements in ./
messaging.install - Implementation of hook_requirements().
- messaging_user in ./
messaging.module - Implementation of hook_user().
File
- ./
messaging.module, line 595
Code
function messaging_method_list($account = NULL) {
$info = messaging_method_info(NULL, 'name');
if ($account) {
foreach (array_keys($info) as $method) {
// Check access for each method
if (!messaging_method_permission($method, $account)) {
unset($info[$method]);
}
}
}
return $info;
}