You are here

function finder_implode_wheres in Finder 7.2

Implode some where clauses.

2 calls to finder_implode_wheres()
finder_build_display_query in includes/build.inc
Does stuff during the display handler's query.
finder_format_wheres in includes/build.inc
Format the wheres.

File

includes/build.inc, line 288
The finder build functions.

Code

function finder_implode_wheres($operator, $wheres) {
  $prefix = '';
  $suffix = '';
  if (count($wheres) > 1) {
    $prefix = '(';
    $suffix = ')';
  }
  return $prefix . implode(' ' . $operator . ' ', $wheres) . $suffix;
}