1 redirect.admin.inc | redirect_list_filter_form($filter_value = '') |
Return a partial form to filter URL redirects.
Parameters
string $filter_value: The default value for the filter textfield.
Return value
array: The partial form for filtering redirects.
See also
redirect_list_filter_form_submit()
Related topics
File
- core/
modules/ redirect/ redirect.admin.inc, line 164 - Admin page callbacks for the Redirect module.
Code
function redirect_list_filter_form($filter_value = '') {
$form['#attributes'] = array('class' => array('search-form'));
$form['basic'] = array(
'#type' => 'fieldset',
'#title' => t('Filter redirects'),
'#attributes' => array('class' => array('container-inline')),
);
$form['basic']['filter'] = array(
'#type' => 'textfield',
'#title' => '',
'#default_value' => $filter_value,
'#maxlength' => 128,
'#size' => 25,
);
$form['basic']['submit'] = array(
'#type' => 'submit',
'#value' => t('Filter'),
'#submit' => array('redirect_list_filter_form_submit'),
);
if ($filter_value) {
$form['basic']['reset'] = array(
'#type' => 'submit',
'#value' => t('Reset'),
'#submit' => array('redirect_list_filter_form_reset'),
);
}
return $form;
}