function _registration_menu_rebuild in Entity Registration 8.2
Same name and namespace in other branches
- 8 includes/registration.field.inc \_registration_menu_rebuild()
- 7.2 includes/registration.field.inc \_registration_menu_rebuild()
- 7 includes/registration.field.inc \_registration_menu_rebuild()
Rebuild the menu for a given registraiton field instance.
Parameters
$instance: Field instance being added or deleted.
3 calls to _registration_menu_rebuild()
- registration_field_create_instance in includes/
registration.field.inc - Implements hook_field_create_instance().
- registration_field_delete_instance in includes/
registration.field.inc - Implements hook_field_delete_instance().
- registration_field_update_instance in includes/
registration.field.inc - Implements hook_field_update_instance().
File
- includes/
registration.field.inc, line 460 - Field hooks.
Code
function _registration_menu_rebuild($instance) {
$registration_fields = field_read_fields(array(
'type' => 'registration',
));
if (in_array($instance['field_name'], array_keys($registration_fields))) {
menu_rebuild();
}
}