function opigno_db_insert_group_activity in Opigno 7
Helper function to get set latest group activity
Parameters
int $nid:
int $uid:
Return value
array
File
- ./
opigno.module, line 829 - Contains all hook_implementations and module specific API.
Code
function opigno_db_insert_group_activity($nid, $uid) {
return db_merge('opigno_latest_group_activity')
->key(array(
'nid' => $nid,
'uid' => $uid,
))
->fields(array(
'timestamp' => REQUEST_TIME,
))
->execute();
}