function contact_category_edit

Page callback: Presents the category edit form.

Parameters

Drupal\contact\Plugin\Core\Entity\Category $category: The contact category to edit.

Return value

array A form array as expected by drupal_render().

See also

contact_menu()

1 string reference to 'contact_category_edit'
contact_menu in drupal/core/modules/contact/contact.module
Implements hook_menu().

File

drupal/core/modules/contact/contact.admin.inc, line 48
Admin page callbacks for the Contact module.

Code

function contact_category_edit(Category $category) {
  drupal_set_title(t('Edit %label contact form category', array(
    '%label' => $category
      ->label(),
  )), PASS_THROUGH);
  return entity_get_form($category);
}