Changing the title of the Answers add answer form
Since you have the node object, you can find its author via $node-&gt;uid. Then load the account and wrap it in format_username():

$uid = $node-&gt;uid;
$account = user_load($uid);
$account_name = format_username($account);


The hook you need depends on the function in which your snippet was found. In your case it is in hook_node_view, so you need hook_node_view_alter()

From there it is as simple as redefining the value. Something like this:

MODULENAME_node_view_alter(&amp;$build) {
  $node = &amp;$build['#node'];

  $new_title = t("Give @author your answer", array('@author' =&gt; $account_name));

  $node-&gt;content['new_answer_form']['new_answer_form_title']['#value'] = $new_title.
}