function Messaging_Message::get_params in Messaging 6.3
Same name and namespace in other branches
- 6.4 includes/messaging_message.class.inc \Messaging_Message::get_params()
- 7 messaging.message.inc \Messaging_Message::get_params()
Get sending method parameters
File
- classes/
messaging_message.class.inc, line 276 - Drupal Messaging Framework - Default class file
Class
- Messaging_Message
- Message class
Code
function get_params($method = NULL) {
$method = $method ? $method : $this->method;
// First get specific parameters for this sending method
$params = isset($this->params[$method]) ? $this->params[$method] : array();
// Check for specific parameters for this method group
$group = messaging_method_info($method, 'group');
if ($group && !empty($this->params[$group])) {
$params += $this->params[$group];
}
return $params;
}