function messaging_array_list in Messaging 7
Get a list of properties as $type => $value
Parameters
$field: Field to retrieve
$filter: Whether to filter out types without value
$default: Default value to return if no value
1 call to messaging_array_list()
- messaging_array_info in ./
messaging.module - Get information from an array of data
File
- ./
messaging.module, line 583
Code
function messaging_array_list($data, $property, $filter = TRUE, $default = NULL) {
$return = array();
foreach ($data as $type => $info) {
if (isset($info[$property])) {
$return[$type] = $info[$property];
}
elseif (!$filter) {
$return[$type] = $default;
}
}
return $return;
}