You are here

function customfilter_filter_edit in Custom filter 6

Same name and namespace in other branches
  1. 5 customfilter.module \customfilter_filter_edit()
  2. 7.2 customfilter.module \customfilter_filter_edit()
  3. 7 customfilter.module \customfilter_filter_edit()

Return the filter edit form.

1 string reference to 'customfilter_filter_edit'
customfilter_menu in ./customfilter.module
Implements hook_menu().

File

./customfilter.admin.inc, line 211
Administration page callbacks for Custom filter.

Code

function customfilter_filter_edit($form_state, $fid) {
  $form = array();
  $filters = _customfilter_get_filters();
  $item = $filters[$fid];
  if (!$fid || !isset($filters[$fid])) {
    drupal_set_message(t('The filter data have not been found, or the menu callback received a wrong parameter.'), 'error');
    watchdog('customfilter', 'The filter data have not been found, or the menu callback received a wrong parameter.', NULL, WATCHDOG_ERROR);
    return $form;
  }
  _customfilter_filter_add_edit_fields($form, $item);
  return $form;
}