public function reference_table_formatter_base_type::show_all_fields in Reference Table Formatter 7
Check if the user has left the field checkboxes blank, rendering them all.
Return value
bool Check if we should show all of the fields.
2 calls to reference_table_formatter_base_type::show_all_fields()
- reference_table_formatter_base_type::get_configured_field_list in ./
reference_table_formatter_base_type.inc - The list of fields which will be shown to the user during render.
- reference_table_formatter_base_type::get_summary in ./
reference_table_formatter_base_type.inc - Get a summary of the configured fields.
File
- ./
reference_table_formatter_base_type.inc, line 317 - A base class for the "reference type" plugin.
Class
- reference_table_formatter_base_type
- Class reference_table_formatter_base_type
Code
public function show_all_fields() {
return count($this->settings['fields']) == 0 || count(array_unique($this->settings['fields'])) === 1 && reset($this->settings['fields']) == '0';
}