function theme_rolereference_formatter_rid_array in Role Reference 6
Theme function for 'rid array' rolereference field formatter.
File
- ./
rolereference.module, line 252 - Defines a field type for referencing a role. Based almost entirely on nodereference and userreference modules.
Code
function theme_rolereference_formatter_rid_array($element) {
foreach (element_children($element) as $key) {
$rid_array[] = $element[$key]['#item']['rid'];
}
return serialize($rid_array);
}