function opigno_get_latest_group_activity_schema in Opigno 7
2 calls to opigno_get_latest_group_activity_schema()
- opigno_schema in ./
opigno.install - Implements hook_schema().
- opigno_update_7102 in ./
opigno.install - Enable the course image field Add two new image styles for courses/classes
File
- ./
opigno.install, line 418 - Contains install instructions and logic
Code
function opigno_get_latest_group_activity_schema() {
$schema = array();
$schema['opigno_latest_group_activity'] = array(
'description' => 'The latest activity of a user in a group',
'fields' => array(
'nid' => array(
'description' => 'The node ID.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'uid' => array(
'description' => 'The user ID who view of node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'timestamp' => array(
'description' => 'The Unix timestamp when the node was view.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
'uid',
),
'indexes' => array(
'nid_uid' => array(
'uid',
'nid',
),
'timestamp' => array(
'timestamp',
),
),
);
return $schema;
}