You are here

function hook_form_message_template_form_alter in Message 8

Alter message template forms.

Modules may alter the message template entity form by making use of this hook or the entity bundle specific hook_form_message_template_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

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

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

File

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

Code

function hook_form_message_template_form_alter(array &$form, array &$form_state) {

  // Your alterations.
}