Closed (won't fix)
Project:
Answers
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2009 at 06:58 UTC
Updated:
1 May 2011 at 18:40 UTC
I'm planning to unhide / enable the title textfield in simpleanswer. And want to add 'Re: ' then the title of the question in it.
In simpleanswer_form function, under Implementation of hook_form, I added this
function simpleanswer_form(&$node) {
$form['title'] = array(
'#type' => 'textfield',
'#title' => check_plain($type->title_label),
'#default_value' => answers_answersapi('qtitle', $node->nid),
'#required' => TRUE
);I want to know why '#default_value' => answers_answersapi('qtitle', $node->nid) does not put the (question's) title in this field.
Comments
Comment #1
chipcleary commentedNo action on this for a *long* time. Marking closed.