Commit 0cfba0a2 authored by mattwire's avatar mattwire

Add js validation to event registration form

parent ea6dc4c3
......@@ -137,20 +137,14 @@ function mjwshared_civicrm_entityTypes(&$entityTypes) {
_mjwshared_civix_civicrm_entityTypes($entityTypes);
}
/**
* Implements hook_civicrm_navigationMenu().
*\/
function mjwshared_civicrm_navigationMenu(&$menu) {
$item = [
'label' => E::ts('Haystack theme settings'),
'name' => 'Haystack theme settings',
'url' => 'civicrm/admin/haystack/settings',
'permission' => 'administer CiviCRM',
'operator' => NULL,
'separator' => NULL,
];
_mjwshared_civix_insert_navigation_menu($menu, 'Administer/Customize Data and Screens', $item);
_mjwshared_civix_navigationMenu($menu);
}
* This hook is invoked when the 'confirm register' and 'thank you' form is rendered
*/
function mjwshared_civicrm_buildForm($formName, &$form) {
switch ($formName) {
case 'CRM_Event_Form_Registration_Register':
CRM_Core_Region::instance('page-body')->add([
'template' => 'CRM/Form/validate.tpl'
]);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment