You are here

function theme_finder_view in Finder 7

Same name and namespace in other branches
  1. 6 includes/finder.inc \theme_finder_view()
  2. 6 includes/finder.theme.inc \theme_finder_view()

Theme the finder.

$output_array contains themed output of various items to put on the page, such as the Finder form, and the results output. The implode is a quick way to put all of these together, but you may choose to be more specific about how to do this.

Parameters

$variables['finder']: The finder object.

$variables['display']: The type of display ('page', 'block', or 'ajax').

$variables['output_array']: A associative array of all the themed 'pieces' to put in the output.

1 theme call to theme_finder_view()
finder_view in ./finder.module
Generate display of a given finder.

File

includes/finder.theme.inc, line 149
Theme functions for the finder module.

Code

function theme_finder_view($variables) {
  $finder = $variables['finder'];
  $display = $variables['display'];
  $output_array = $variables['output_array'];
  drupal_add_css(drupal_get_path('module', 'finder') . '/finder.css');
  $output = '<div class="finder-view-' . $finder->finder_id . ' finder-view">';
  if ($display == 'ajax') {
    $output .= theme('status_messages');
  }
  $output .= implode('', $output_array);
  $output .= '</div>';
  return $output;
}