function seo_checker_form_alter in SEO Compliance Checker 6.2
Same name and namespace in other branches
- 6 seo_checker.module \seo_checker_form_alter()
Implementation of hook_form_alter(). Add check results to the form if it has been submitted.
File
- ./
seo_checker.module, line 58
Code
function seo_checker_form_alter(&$form, $form_state, $form_id) {
if (strpos($form_id, 'node_form') && variable_get('seo_checker_' . $form['type']['#value'], 0) != 0) {
$form['#validate'][] = 'seo_checker_node_form_validate';
}
}