You are here

public function GatherContentCurl::filtersDropdown in GatherContent 7.2

Load text filter dropdowns.

File

includes/curl.inc, line 402
Contains functions used to process and retrieve data from GatherContent.

Class

GatherContentCurl
@file Contains functions used to process and retrieve data from GatherContent.

Code

public function filtersDropdown() {
  $formatting = array();
  $html = '';
  $result = db_query("SELECT * FROM {filter_format}");
  foreach ($result as $record) {
    if ($this->defaultFilter == '') {
      $this->defaultFilter = $record->format;
    }
    $html .= '
      <li>
        <a href="#" data-value="' . $record->format . '">' . $record->name . '</a>
      </li>';
  }
  $this->data['formatting'] = $html;
}