function nodeactivity_activity_info in Activity 5.2
Same name and namespace in other branches
- 5.4 contrib/nodeactivity/nodeactivity.module \nodeactivity_activity_info()
- 5.3 contrib/nodeactivity/nodeactivity.module \nodeactivity_activity_info()
- 6 contrib/nodeactivity/nodeactivity.module \nodeactivity_activity_info()
Activity definition file
This defines what hooks activity module should use
File
- contrib/
nodeactivity.module, line 7
Code
function nodeactivity_activity_info() {
$types = node_get_types();
foreach ($types as $type) {
$token_types[$type->type] = $type->name;
}
return array(
'name' => 'nodeapi',
'module' => 'node',
'ops' => array(
'insert',
),
'types' => $token_types,
'tokens' => array(
'user' => 'user who did the action',
'user-link' => 'link to the users profile',
'node-id' => 'id of the post',
'node-title' => 'title of the post',
'node-title-link' => 'link to the node',
'node-type' => 'the type of node',
'rating' => 'rating data (if available)',
),
);
}