New hook to determine if activity should be triggered

Created on 23 January 2010, almost 16 years ago
Updated 29 October 2025, 6 days ago

We should be able to tell activity not to create an activity message via a hook, like:


function mymodule_activity_comment($object)
{
      if ($object->cid < 100)
          return FALSE;

   return TRUE;
}

function mymodule_activity_nodeapi($object)
{
      if ($object->nid < 100)
          return FALSE;

   return TRUE;
}

function mymodule_activity_user($object)
{
      if ($object->uid < 100)
          return FALSE;

   return TRUE;
}
Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇨🇦Canada fizk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024