function contact_entity_bundle_info

Implements hook_entity_bundle_info().

File

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

Code

function contact_entity_bundle_info() {
  $bundles = array();
  foreach (config_get_storage_names_with_prefix('contact.category.') as $config_name) {
    $config = config($config_name);
    $bundles['contact_message'][$config
      ->get('id')]['label'] = $config
      ->get('label');
  }
  return $bundles;
}