function og_search_form in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_search_form()
- 5 og.module \og_search_form()
- 5.3 og.module \og_search_form()
- 5.7 og.module \og_search_form()
1 string reference to 'og_search_form'
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;
}