You are here

function _currency_views_get_selected_options in Currency 6

Same name and namespace in other branches
  1. 7 includes/views/currency.views.inc \_currency_views_get_selected_options()

Helper function to get the filter's selected options.

1 call to _currency_views_get_selected_options()
currency_views_preload in views/currency.views.inc
Calls currency_api_convert for every exchange rate that should be displayed according to filter and argument settings to ensure that rates are in the database when views performs it's query.

File

views/currency.views.inc, line 129
Register all of the basic handlers that views uses.

Code

function _currency_views_get_selected_options($options) {
  foreach ($options as $key => $set) {
    if ($set) {

      // i.e. not equal to 0
      $selected_options[] = $set;
    }
  }
  return $selected_options;
}