function activity_insert in Activity 5
Same name and namespace in other branches
- 5.4 activity.module \activity_insert()
- 5.2 activity.module \activity_insert()
- 5.3 activity.module \activity_insert()
- 6 activity.module \activity_insert()
function that does all the recording
4 calls to activity_insert()
- activity_buddylist in includes/
buddylist.inc - Implementation of hook_buddylist_api()
- activity_nodeapi in includes/
node.inc - Implementation of hook_nodeapi()
- activity_views_bookmark_api in includes/
views_bookmark.inc - Implementation of hook_views_bookmark_api()
- activity_votingapi_insert in includes/
votingapi.inc - Implementation of hook_votingapi_insert()
File
- ./
activity.module, line 418 - Activity module: Allow users to see their friends' activity on the site.
Code
function activity_insert($module, $type, $action, $tokens) {
global $user;
$aid = db_next_id('activity');
db_query("INSERT INTO {activity} VALUES(%d, %d, '%s', '%s', '%s', '%s', %d)", $aid, $user->uid, $module, $type, $action, serialize($tokens), time());
}