What event is triggered when blogs, pages, bookmarks, files and thewire objects are created by users?

Hi,

I'm trying to determine when the following objects are created by users on the elgg site that I have installed on localhost: Blog, Page, Bookmark, File and posts on The Wire.

I have:

elgg_register_event_handler('create', 'pages', 'created_A_Page');

function created_A_Page($event, $object_type, $object) {
    error_log("created the page!");
    error_log($event . " " . $object_type . " " . $object);
}

I just wanted to track when a user has created any of these objects on the site. The function isn't being called. Am I not understanding the ElggObject?

Any help would be appreciated.

 

Diana.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking