function node_activity_info in Activity 6.2
Same name and namespace in other branches
- 5 includes/node.inc \node_activity_info()
File
- ./
activity.module, line 97 - Primarily Drupal hooks and global API functions to manipulate activity.
Code
function node_activity_info() {
$info = _activity_activity_info();
$info->name = 'node';
$info->object_type = 'node';
$info->objects = array(
'author' => 'node',
);
// the array key is the label
$info->hooks = array(
'nodeapi' => array(
'delete',
'insert',
'update',
'view',
),
);
$info->realms = array(
'node_author' => 'Node Author',
);
foreach (node_get_types() as $type) {
$info->type_options[$type->type] = t($type->name);
}
$info->list_callback = 'node_list_activity_actions';
$info->context_load_callback = 'node_load_activity_context';
return $info;
}