Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. function apachesolr_solr_sort_form($form_id, $item_names, $items) {    
  2.  
  3.   $form['solr-sort'] = array (
  4.     '#type' => 'select',
  5.     '#title' => t('Sortieren nach'),
  6.     '#default_value' => 'sort_title',
  7.     '#options' => $item_names,    
  8.     '#multiple' => FALSE,
  9.   );    
  10.   $form['submit'] = array(
  11.    '#type' => 'submit',
  12.    '#value' => t('Suche')
  13.   );
  14.   $form['select_values'] = array (
  15.     '#type' => 'value',
  16.     '#value' => $items,
  17.   );      
  18.  
  19.   return $form;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement