Share » Forums » General » How to remove notifications from all...

How to remove notifications from all users?

How to remove notifications from all users?

Monday 02 November 2009 12:39:55 pm - 1 reply

Modified on Monday 02 November 2009 1:14:18 pm by zurgutt -

Author Message

Romain Petit

Saturday 07 November 2009 4:03:42 am

Hi,

Subscription date is not stored, you have no way to filter notification rules by subscription date.

PS :You should not manually accessing tables, you may be able to remove all notifications by doing something like that :

$db = eZDB::instance();
$rows = $db->arrayQuery('SELECT DISTINCT content_object_id FROM ezuser WHERE 1');
foreach( $rows as $row )
{
    eZSubtreeNotificationRule::removeByUserID($row['content_object_id']);
}

Good luck !

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu