Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
166 views
in Q2A Core by

 

When clicking the edit button on a question it jumps to the editform.
How does this work ? 
 
In the qa-page-question-view.php I found the button:
 
if ($question['editbutton'])
$buttons['edit']=array(
'tags' => 'NAME="q_doedit"',
'label' => qa_lang_html('question/edit_button'),
'popup' => qa_lang_html('question/edit_q_popup'),
);
 
So it uses the name q_doedit to perform the action. But where can I find the matching code ?
 
I need to send over aparameter to the edit page.
 
Thanks on all hint...

1 Answer

0 votes
by

Search qa-page-question-post.php for if (qa_clicked('q_doedit')) - you'd need to modify the redirection.

...