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