1 path.admin.inc | path_admin_filter_form($form, &$form_state, $keys = '') |
Form constructor for the path admin overview filter form.
See also
path_admin_filter_form_submit_filter()
path_admin_filter_form_submit_reset()
Related topics
File
- core/
modules/ path/ path.admin.inc, line 295 - Admin page callbacks for the Path module.
Code
function path_admin_filter_form($form, &$form_state, $keys = '') {
$form['#attributes'] = array('class' => array('search-form'));
$form['basic'] = array(
'#type' => 'fieldset',
'#title' => t('Filter aliases'),
'#attributes' => array('class' => array('container-inline')),
);
$form['basic']['filter'] = array(
'#type' => 'search',
'#title' => t('URL alias'),
'#title_display' => 'invisible',
'#default_value' => $keys,
'#maxlength' => 128,
'#size' => 25,
);
$form['basic']['submit'] = array(
'#type' => 'submit',
'#value' => t('Filter'),
'#submit' => array('path_admin_filter_form_submit_filter'),
);
if ($keys) {
$form['basic']['reset'] = array(
'#type' => 'submit',
'#value' => t('Reset'),
'#submit' => array('path_admin_filter_form_submit_reset'),
);
}
return $form;
}