Details
Description
There doesn't seem to be a way to throw custom errors using hook_civicrm_validateForm on the Event Info and Settings page. We've tracked this down to a line in CRM/Event/Form/ManageEvent.php that sets "isForm" to "FALSE" for this form, which I believe was done to allow for the new javascript form validation code.
Removing "self::$_template->assign('isForm', FALSE);" from around line 383 allows for custom validation errors to be thrown using hook_civicrm_validateForm and doesn't appear to break anything with the form. Is there a reason that line still needs to be there? There's a comment above that says "hack lets suppress the form rendering for now" which makes me think this was added a bit hastily in the first place.
Any thoughts?