function _filebrowser_properties_to_checkboxes in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.helpers.inc \_filebrowser_properties_to_checkboxes()
- 7.4 filebrowser.helpers.inc \_filebrowser_properties_to_checkboxes()
- 7.2 filebrowser.helpers.inc \_filebrowser_properties_to_checkboxes()
- 7.3 filebrowser.helpers.inc \_filebrowser_properties_to_checkboxes()
Convert an array for formapi checkboxes comatibiility.
Parameters
$properties source array:
Return value
formapi checkboxes
1 call to _filebrowser_properties_to_checkboxes()
- _filebrowser_form_presentation_part in includes/
node.inc
File
- includes/
helpers.inc, line 54 - Misc helper functions.
Code
function _filebrowser_properties_to_checkboxes(&$properties) {
$result = array();
if ($properties) {
foreach ($properties as $key => $value) {
if ($value) {
$result[$key] = $key;
}
}
}
return $result;
}