function path_admin_filter_form
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
1 string reference to 'path_admin_filter_form'
- path_admin_overview in modules/
path/ path.admin.inc - Returns a listing of all defined URL aliases.
File
-
modules/
path/ path.admin.inc, line 273
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' => 'textfield',
'#title' => 'Path 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.