function activity_record in Activity 7
Same name and namespace in other branches
- 6.2 activity.module \activity_record()
Action Callback.
2 string references to 'activity_record'
- activity_configure_handler_form_submit in ./
activity.admin.inc - Form submit handler for the configuration form.
- activity_create_form_submit in ./
activity.admin.inc - Form submit callback to create the new ActivityActionHandler.
File
- ./
activity.module, line 201 - Records Activity across the site and surfaces that to Views.
Code
function activity_record($object, $context, $a1, $a2) {
if (isset($context['aid'])) {
$handler = activity_handler_load($context['aid']);
$eid = $handler
->determineEid($context);
if (isset($eid)) {
activity_save_activity($handler, $eid, $a1, $a2);
}
}
}