Writing functions

Error message

  • Notice: Undefined index: menu_name in menu_tree_page_data() (line 1277 of /var/www/1ka.si/www/frontend/drupal/includes/menu.inc).
  • Notice: Undefined index: menu_name in menu_tree_page_data() (line 1277 of /var/www/1ka.si/www/frontend/drupal/includes/menu.inc).
addQuestionValue – adds new answer in a question
request_method: POST
 
Parameters:
  • action=addQuestionValue
  • ank_id=123        (survey id)
  • spr_id=1234      (question id)

POST field:

{"tittle":"New answer text"}