function contact_category_load

Loads a contact category.

Parameters

$id: The ID of the contact category to load.

Return value

Drupal\contact\Plugin\Core\Entity\Category|false A Category object or FALSE if the requested $id does not exist.

1 string reference to 'contact_category_load'
CategoryFormController::form in drupal/core/modules/contact/lib/Drupal/contact/CategoryFormController.php
Overrides Drupal\Core\Entity\EntityFormController::form().

File

drupal/core/modules/contact/contact.module, line 222
Enables the use of personal and site-wide contact forms.

Code

function contact_category_load($id) {
  return entity_load('contact_category', $id);
}