Follow

Questions & Answers 2 Theme Guide

Additional functionality of Q&A2 theme is implemented in the questionsanswers_helper module

All additional functions are described in the file: questionsanswers_helper.module

The functionality for managing best answers is implemented in the following functions

  1. questionsanswers_helper_node_save_bestanswer - saves the choice of best answer of a user
  2. questionsanswers_helper_node_load_bestanswer - loads id of best answer

The functionality of displaying badges is implemented in the following functions

  1. questionsanswers_helper_user_view - hook_user_view
  2. questionsanswers_helper_user_badges - loads all badges for a specified user
  3. questionsanswers_helper_node_delete - hook_node_delete counts the number of questions, it's necessary for intermediate caching
  4. questionsanswers_helper_node_insert - hook_node_insert counts the number of questions, it's necessary for intermediate caching
  5. questionsanswers_helper_node_update - hook_node_update counts the number of questions, it's necessary for intermediate caching
  6. questionsanswers_helper_comment_insert - hook_comment_insert counts the number of answers, it's necessary for intermediate caching
  7. questionsanswers_helper_comment_publish - hook_comment_publish counts the number of answers, it's necessary for intermediate caching
  8. questionsanswers_helper_comment_unpublish - hook_comment_unpublish counts the number of answers, it's necessary for intermediate caching
  9. questionsanswers_helper_comment_delete - hook_comment_delete counts the number of answers, it's necessary for intermediate caching
  10. questionsanswers_helper_rate_vote_alter - hook_rate_vote_alter counts the number of votes, it's necessary for intermediate caching

The functionality of displaying the level is implemented in the following function 

  1. questionsanswers_helper_user_level_img - outputs the sign of the level

The levels themselves are the corresponding roles

 

0 Comments

Article is closed for comments.