Hi.

I have created a views type and views support for this module. Uploading the files if you want to include the changes into your version.

CommentFileSizeAuthor
question-view.zip6.18 KBmsu

Comments

verta’s picture

I see several mods in the new file more than just adding views support. It might be good to put full notes in the readme if this gets promoted to -dev?

Here's a swag as some documentation, but it might be better if the developer wrote this:

1 - Implementation of hook_views_api()
2 - Addition of 'Ask a question' to hook_block()
3 - Misc clean up, checking null conditions on $user->name in function question_qform()
4 - Setting null string defaults (wording?) on empty form submission fields in hook_form()
5 - Added $output = ''; to function question_add()

I've installed the new version, and the new block for "ask a question" works fine.

I've added a view and it works on actual nodes of type question, but what I'm looking for is a way to set up a view on the unanswered questions.

verta’s picture

Status: Patch (to be ported) » Needs review