You are here

function _currency_views_get_selected_options in Currency 7

Same name and namespace in other branches
  1. 6 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 includes/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

includes/views/currency.views.inc, line 108
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;
}