You are here

function commons_origins_preprocess_search_results in Drupal Commons 7.3

Implements hook_preprocess_search_results().

Assemble attributes for styling that core does not do so we can keep the tpl files simpler and make maintaining it a bit less worrisome since there are 2 forms of search supported.

File

themes/commons/commons_origins/template.php, line 82
Process theme data.

Code

function commons_origins_preprocess_search_results(&$variables, $hook) {
  $variables['classes_array'][] = 'search-results-wrapper';
  $variables['title_attributes_array']['class'][] = 'search-results-title';
  $variables['content_attributes_array']['class'][] = 'search-results-content';
  $variables['content_attributes_array']['class'][] = 'commons-pod';
}