Removing translation directories
[project/views.git] / modules / profile / views_handler_filter_profile_selection.inc
CommitLineData
fe44beb7 1<?php
fe44beb7
EM
2
3/**
4 * Filter by a selection widget in the profile.
5 */
6class views_handler_filter_profile_selection extends views_handler_filter_in_operator {
7 function get_value_options() {
8 if (isset($this->value_options)) {
9 return;
10 }
11
12 $this->value_options = array();
13 $all_options = profile_views_get_fields();
14 $field = $all_options[$this->definition['fid']];
15
16 $lines = split("[,\n\r]", $field->options);
17 foreach ($lines as $line) {
18 if ($line = trim($line)) {
19 $this->value_options[$line] = $line;
20 }
21 }
22 }
23}