function messaging_method_info in Messaging 6.3
Same name and namespace in other branches
- 5 messaging.module \messaging_method_info()
- 6.4 messaging.module \messaging_method_info()
- 6 messaging.module \messaging_method_info()
- 6.2 messaging.module \messaging_method_info()
- 7 messaging.module \messaging_method_info()
Returns messaging methods properties
Parameters
$method: Optional, Method to get properties for, none or NULL for all methods
$property: Optional, Property to get, none or NULL for all properties
$default: Optional default value to return when there's not that property for the method
15 calls to messaging_method_info()
- messaging_admin_method_settings in ./
messaging.admin.inc - Default sending methods settings
- messaging_admin_template in ./
messaging.admin.inc - Messaging_API_Tests::testMessagingSendingAPI in tests/
messaging_api.test - Play with creating, retrieving, deleting a pair messages
- Messaging_Message::get_params in classes/
messaging_message.class.inc - Get sending method parameters
- Messaging_Methods_Tests::testMessagingMethods in tests/
messaging_methods.test - Test message sending callbacks for enabled plug-ins
File
- ./
messaging.module, line 435
Code
function messaging_method_info($method = NULL, $property = NULL, $default = NULL, $refresh = FALSE) {
$info =& messaging_static(__FUNCTION__);
if (!$info || $refresh) {
$info = module_invoke_all('messaging', 'send methods');
// Merge settings for each enabled method, just default filter if variable not set
$default_settings = array(
'filter' => variable_get('messaging_default_filter', ''),
);
foreach (array_keys($info) as $name) {
$info[$name] = array_merge($info[$name], variable_get('messaging_method_' . $name, $default_settings));
}
// Allow altering by other modules
drupal_alter('messaging_methods', $info);
}
return _messaging_info($info, $method, $property, $default);
}