You are here

function filter_admin_configure in Drupal 4

Same name and namespace in other branches
  1. 5 modules/filter/filter.module \filter_admin_configure()
  2. 6 modules/filter/filter.admin.inc \filter_admin_configure()

Menu callback; display settings defined by filters.

1 string reference to 'filter_admin_configure'
filter_menu in modules/filter.module
Implementation of hook_menu().

File

modules/filter.module, line 587
Framework for handling filtering of content.

Code

function filter_admin_configure() {
  $format = arg(2);
  $list = filter_list_format($format);
  $form = array();
  foreach ($list as $filter) {
    $form_module = module_invoke($filter->module, 'filter', 'settings', $filter->delta, $format);
    if (isset($form_module) && is_array($form_module)) {
      $form = array_merge($form, $form_module);
    }
  }
  if (!empty($form)) {
    $output = system_settings_form('filter_admin_configure', $form);
  }
  else {
    $output = t('No settings are available.');
  }
  return $output;
}