function services_views_element_retrieve in Services Views 7
Get values from header/footer
Parameters
$object: Object of view header/footer.
Return value
array Return array with all elements in header/footer.
1 call to services_views_element_retrieve()
- services_views_execute_view in ./
services_views.resource.inc - Execute a view and return results.
File
- ./
services_views.resource.inc, line 305 - Callbacks for services module resource hooks.
Code
function services_views_element_retrieve($object) {
$output = array();
if (empty($object)) {
return $output;
}
foreach ($object as $ui_key => $field) {
$ui_name = !empty($field->options['ui_name']) ? $field->options['ui_name'] : $ui_key;
$output[$ui_name]['label'] = !empty($field->options['label']) ? $field->options['label'] : NULL;
$output[$ui_name]['content'] = $object[$ui_key]
->render();
}
return $output;
}