Skip to content

Commit

Permalink
Renamed functions for hook_form_FORM_ID_alter to newly overridden fo…
Browse files Browse the repository at this point in the history
…rm ID: message_private_form_message_private_instance_message_manage_alter and associated validate function: message_private_form_message_private_instance_message_manage_validate
  • Loading branch information
mccrodp committed May 16, 2015
1 parent e5382bf commit 9ca8aaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message_private.module
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ function message_private_instance_message_manage($form, &$form_state, $message)
* Hide the message_text field from the message edit form. It is only useful
* post creation. i.e. - contains user data. Also add custom validate function.
*/
function message_private_form_message_ui_instance_message_manage_alter(&$form, &$form_state, $form_id) {
function message_private_form_message_private_instance_message_manage_alter(&$form, &$form_state, $form_id) {
if ($form['#bundle'] == 'private_message') {
if (isset($form['text']['#type'])) {
$form['text']['#type'] = 'hidden';
}
$form['owner']['#access'] = user_access('bypass private message access control');
$form['#validate'][] = 'message_private_form_message_ui_instance_message_manage_validate';
$form['#validate'][] = 'message_private_form_message_private_instance_message_manage_validate';
}
}

Expand All @@ -335,7 +335,7 @@ function message_private_form_message_ui_instance_message_manage_alter(&$form, &
* @param mixed $form_state
* The form state including values submitted.
*/
function message_private_form_message_ui_instance_message_manage_validate($form, &$form_state) {
function message_private_form_message_private_instance_message_manage_validate($form, &$form_state) {
// If there is an imposed message limit set in the admin settings interface.
if (variable_get(MESSAGE_PRIVATE_MESSAGE_LIMIT, FALSE)
&& !user_access('bypass private message access control')) {
Expand Down

0 comments on commit 9ca8aaa

Please sign in to comment.