00001 <?php 00002 00008 class views_handler_filter_profile_selection extends views_handler_filter_in_operator { 00009 function get_value_options() { 00010 if (isset($this->value_options)) { 00011 return; 00012 } 00013 00014 $this->value_options = array(); 00015 $all_options = profile_views_get_fields(); 00016 $field = $all_options[$this->definition['fid']]; 00017 00018 $lines = preg_split("/[,\n\r]/", $field->options); 00019 foreach ($lines as $line) { 00020 if ($line = trim($line)) { 00021 $this->value_options[$line] = $line; 00022 } 00023 } 00024 } 00025 }