You are here

function og_search_form in Organic groups 5.2

Same name and namespace in other branches
  1. 5.8 og.module \og_search_form()
  2. 5 og.module \og_search_form()
  3. 5.3 og.module \og_search_form()
  4. 5.7 og.module \og_search_form()
1 string reference to 'og_search_form'
og_og_block_details in ./og.module

File

./og.module, line 2272

Code

function og_search_form($group) {
  $form['filter0'] = array(
    '#type' => 'textfield',
    '#title' => '',
    '#description' => '',
    '#size' => 19,
    '#maxlength' => 255,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Search'),
  );
  $form['#process'] = array(
    'views_filters_process' => array(),
  );
  $form['#method'] = 'get';
  $form['#action'] = url("og/search/{$group->nid}");
  return $form;
}