I have installed activity module and it works great.
But the problem now I am facing is ,I have installed quiz module and want to save activity whenever a user takes a quiz. So if a user takes a quiz, activity should show that "a user has taken quiz with ".
so i have implemented the below code according to documentation:-
function quiz_activity_info() {
$info = new stdClass();
$info->api = 2;
$info->name = 'Quiz';
$info->object_type = 'quiz';
$info->objects = array('quiz_taker' => 'user', 'quiz_title' => 'quiz'); // array keys are the labels
//$info->hooks = array('quiz_finished' => array('finish'));
$info->hooks = array('quiz_finished');
$info->realms = array('quiz_finished' => 'Finish Quiz');
$info->type_options = array();
$info->list_callback = 'quiz_list_activity_actions';
$info->context_load_callback = 'quiz_load_activity_context';
return $info;
}
//where hook_quiz_finished is the hook to be fired
bui it is giving me error
warning: call_user_func() expects parameter 1 to be a valid callback, function 'quiz_hook_info' not found or invalid function name in /opt/lampp/htdocs/programr/sites/all/modules/activity/activity.admin.inc on line 256.
warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/programr/sites/all/modules/activity/activity.admin.inc on line 256.
please help me to resolve this issue.
tks in advance,
vil
Closed: outdated
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.