function quiz_get_all_titles in Quiz 7
Same name and namespace in other branches
- 6.4 quiz.module \quiz_get_all_titles()
- 7.4 quiz.module \quiz_get_all_titles()
Returns the titles for all quizzes the user has access to.
Return value
quizzes Array with nids as keys and titles as values.
Related topics
File
- ./
quiz.module, line 1563 - Quiz Module
Code
function quiz_get_all_titles() {
return db_select('node', 'n')
->fields('n', array(
'nid',
'title',
))
->condition('n.type', 'quiz')
->addTag('node_access')
->execute()
->fetchAll();
}