function support_ticket_type_update_support_tickets in Support Ticketing System 8
Updates all support tickets of one type to be of another type.
Parameters
string $old_id: The current support ticket type of the support tickets.
string $new_id: The new support ticket type of the support tickets.
Return value
The number of support tickets whose support ticket type field was modified.
1 call to support_ticket_type_update_support_tickets()
- SupportTicketType::postSave in modules/
support_ticket/ src/ Entity/ SupportTicketType.php - Acts on a saved entity before the insert or update hook is invoked.
File
- modules/
support_ticket/ support_ticket.module, line 200 - Enables use of support tickets with optional time tracking.
Code
function support_ticket_type_update_support_tickets($old_id, $new_id) {
return \Drupal::entityManager()
->getStorage('support_ticket')
->updateType($old_id, $new_id);
}