validate_cfs_newadmin.inc in Node and Comments Form Settings 6.3
File
commentformsettings/includes/validate_cfs_newadmin.inc
View source
<?php
function _validate_cfs_newadmin($form, &$form_state) {
if ($form_state['values']['cfs_newadmin'] == 0 && $form_state['values']['comment'] != 2) {
form_set_error('cfs_newadmin', t("If you want to enable the functionality to override the author of a comment you need to enable comments for this content type. Please fix one or the other."));
}
}
Functions
Name |
Description |
_validate_cfs_newadmin |
Validate if the Cancel link is not enabled when the comment form is below the post or comments |