function views_fields_on_off_form::get_field_labels_no_relationship_names in Views Fields On/Off 7
Retrieve a list of fields for the current display.
Parameters
$display_handler:
Return value
array array of Views options
2 calls to views_fields_on_off_form::get_field_labels_no_relationship_names()
- views_fields_on_off_form::exposed_form in includes/
views/ views_fields_on_off_form.inc - Render our chunk of the exposed handler form when selecting.
- views_fields_on_off_form::options_form in includes/
views/ views_fields_on_off_form.inc - Default options form provides the label widget that all fields should have.
File
- includes/
views/ views_fields_on_off_form.inc, line 89 - Definition of views_fields_on_off_form.
Class
- views_fields_on_off_form
- Provides a handler that adds the form for Fields On/Off.
Code
function get_field_labels_no_relationship_names($display_handler) {
$groupable_only = FALSE;
$options = array();
foreach ($display_handler
->get_handlers('field') as $id => $handler) {
if ($groupable_only && !$handler
->use_string_group_by()) {
// Continue to next handler if it's not groupable.
continue;
}
if ($label = $handler
->label()) {
$options[$id] = $label;
}
else {
$options[$id] = $handler
->ui_name();
}
}
return $options;
}