You are here

public function reference_table_formatter_base_type::get_configured_field_list in Reference Table Formatter 7

The list of fields which will be shown to the user during render.

Return value

array An array of field names.

2 calls to reference_table_formatter_base_type::get_configured_field_list()
reference_table_formatter_base_type::get_summary in ./reference_table_formatter_base_type.inc
Get a summary of the configured fields.
reference_table_formatter_base_type::render_table in ./reference_table_formatter_base_type.inc
Render a table of content from the plugin.

File

./reference_table_formatter_base_type.inc, line 198
A base class for the "reference type" plugin.

Class

reference_table_formatter_base_type
Class reference_table_formatter_base_type

Code

public function get_configured_field_list() {
  $configured_fields = array();
  if ($this
    ->show_all_fields()) {
    $configured_fields = array_keys($this
      ->get_renderable_fields());
  }
  else {
    foreach ($this->settings['fields'] as $field_name => $value) {
      if ($field_name === $value) {
        $configured_fields[] = $field_name;
      }
    }
  }
  return $configured_fields;
}