You are here

function views_filter_nid_process_form in Views PHP Filter 5

File

./viewsphpfilter.module, line 98

Code

function views_filter_nid_process_form($element) {

  //the if should NOT be needed -- why is it turning my strings into arrays? Drupal 5.x only
  if (is_array($element['#value'])) {
    $element['#value'] = implode(',', $element['#value']);
  }

  //error_log("form: " . print_r($element['#value'], TRUE));
  return $element;
}