function blocks404_form_alter in 404 Blocks 5
Implements hook_form_alter().
File
- ./
blocks404.module, line 54
Code
function blocks404_form_alter($form_id, &$form) {
if ($form_id == 'system_error_reporting_settings') {
// Since we don't care what site_404 is set to, let the user set it if they want.
if ($form['site_404']['#default_value'] == BLOCKS404_PAGE) {
$form['site_404']['#default_value'] = '';
}
}
elseif ($_GET['q'] == BLOCKS404_PAGE) {
include_once './' . drupal_get_path('module', 'blocks404') . '/blocks404.active.inc';
_blocks404_form_alter($form_id, $form);
}
}