array('form' => array(), 'file' => 'modalframe_input_formats.admin.inc')); } /** * Implementation of hook_theme_registry_alter(). */ function modalframe_input_formats_theme_registry_alter(&$theme_registry) { // Replace original theme entry with our own. variable_set('modalframe_input_formats_theme_entry', $theme_registry['filter_admin_overview']); $theme_registry['filter_admin_overview'] = $theme_registry['modalframe_input_formats_admin_overview']; } /** * Implementation of hook_form_alter(). */ function modalframe_input_formats_form_alter(&$form, $form_state, $form_id) { if (!empty($_COOKIE['has_js']) && (strpos($form_id, 'filter_admin_') === 0 || strpos($form_id, 'better_formats_') === 0)) { module_load_include('inc', 'modalframe_input_formats', 'modalframe_input_formats.admin'); _modalframe_input_formats_form_alter($form, $form_state, $form_id); } }