You are here

function hook_form_message_type_form_alter in Message 7

Alter message type forms.

Modules may alter the message type entity form by making use of this hook or the entity bundle specific hook_form_message_type_edit_BUNDLE_form_alter(). #entity_builders may be used in order to copy the values of added form elements to the entity, just as documented for entity_form_submit_build_entity().

Parameters

$form: Nested array of form elements that comprise the form.

$form_state: A keyed array containing the current state of the form.

File

./message.api.php, line 119
Hooks provided by the Message module.

Code

function hook_form_message_type_form_alter(&$form, &$form_state) {

  // Your alterations.
}