Updates a category.
string $id: The category machine name.
string $label: The category label.
string $recipients: The list of recipient e-mail addresses.
string $reply: The auto-reply text that is sent to a user upon completing the contact form.
boolean $selected: A Boolean indicating whether the category should be selected by default.
function updateCategory($id, $label, $recipients, $reply, $selected) {
$edit = array();
$edit['label'] = $label;
$edit['recipients'] = $recipients;
$edit['reply'] = $reply;
$edit['selected'] = $selected ? TRUE : FALSE;
$this
->drupalPost("admin/structure/contact/manage/{$id}/edit", $edit, t('Save'));
}