You are here

function answers_form_answer_node_form_alter in Answers 6.2

Same name and namespace in other branches
  1. 7.3 answers.module \answers_form_answer_node_form_alter()

Implements hook_form_FORM_ID_alter() for answer_node_form().

File

./answers.module, line 148

Code

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

  // Change the name of the submit button
  $prompt = arg(1) == 'add' ? t('Post Your Answer') : t('Update Your Answer');
  $form['buttons']['submit']['#value'] = $prompt;
  $form['#after_build'][] = 'answers_form_answer_node_form_after_build';
}