function node_noindex_ct_validate in Node Noindex 7
Custom validation handler for the content type form.
1 string reference to 'node_noindex_ct_validate'
- node_noindex_form_node_type_form_alter in ./
node_noindex.module - Implements hook_form_FORM_ID_alter().
File
- ./
node_noindex.module, line 135
Code
function node_noindex_ct_validate($form, &$form_state) {
if (!$form_state['values']['node_noindex_ct']['node_noindex'] && $form_state['values']['node_noindex_ct']['node_noindex_default']) {
form_set_error('node_noindex_ct][node_noindex_default', t('You cannot set <code>noindex</code> as the default without also enabling the <code>noindex</code> function.'));
}
}