Configuration 1. Add CiviCRM custom group and custom field, be sure group type is participant and field type is integer 2. Go to drupal setting page admin/settings/civicrm_participant_serial , save which field to save serial 3. patch add-civicrm-hook.patch to civicrm core.