'textfield', '#title' => t('Filter modules'), '#prefix' => '' ); } } /** * Implementation of hook_theme_registry_alter(). */ function module_filter_theme_registry_alter(&$theme_registry) { $theme_registry['system_modules']['function'] = 'theme_module_filter_system_modules'; } function theme_module_filter_system_modules($form) { if (isset($form['confirm'])) { return drupal_render($form); } drupal_add_js(drupal_get_path('module', 'module_filter') .'/module_filter.js'); $output = drupal_render($form['module_filter']); $output .= theme_system_modules($form); return $output; }