You are here

function _answers_notify_form_alter in Answers 7

Same name and namespace in other branches
  1. 6 includes/answers.notify.inc \_answers_notify_form_alter()
  2. 7.2 includes/answers.notify.inc \_answers_notify_form_alter()
1 call to _answers_notify_form_alter()
answers_form_alter in ./answers.module

File

includes/answers.notify.inc, line 57
Notification functions for the 'Answers' module

Code

function _answers_notify_form_alter(&$form, &$form_state, $form_id) {
  global $user;
  if ($form_id == 'question_node_form' && $user->uid == 0) {
    $form['field_notify_p'][0]['#default_value']['value'] = 0;
    $form['field_notify_p']['#prefix'] = '<div style="display: none;">';
    $form['field_notify_p']['#suffix'] = '</div>';
  }
}