From 7bf3e8adb2d68cfe12503b2a8e58cb49b6892234 Mon Sep 17 00:00:00 2001
From: chipcleary <chipcleary@hotmail.com>
Date: Fri, 20 Jan 2012 20:15:25 -0600
Subject: [PATCH] Issue 1412204 by chipcleary: Fix bug in retitling the submit button on the question edit form

---
 answers.module |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/answers.module b/answers.module
index cbe7803..168a22b 100644
--- a/answers.module
+++ b/answers.module
@@ -126,8 +126,9 @@ function _answers_question_answers($question) {
  * Implements hook_form_FORM_ID_alter() for question_node_form().
  */
 function answers_form_question_node_form_alter(&$form, &$form_state) {
+
   // Change the name of the submit button.
-  $form['actions']['submit']['#value'] = t('Ask Your Question');
+  $form['buttons']['submit']['#value'] = t('Ask Your Question');
 
   // Populate title field if passed via URL if access to edit title.
   if (isset($_GET['title']) && (!isset($form['#access']) || !empty($form['#access']))) {
-- 
1.7.4.msysgit.0

