You are here

function og_search_form in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og.module \og_search_form()
  2. 5 og.module \og_search_form()
  3. 5.2 og.module \og_search_form()
  4. 5.7 og.module \og_search_form()
2 string references to 'og_search_form'
og_og_block_details in ./og.module
og_panels_ct_render_callback_search in includes/groupcontent.inc

File

./og.module, line 2429

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;
}