diff --git a/culturefeed_pages/includes/pages.inc b/culturefeed_pages/includes/pages.inc index d5f21ad0..e1c1606c 100644 --- a/culturefeed_pages/includes/pages.inc +++ b/culturefeed_pages/includes/pages.inc @@ -453,6 +453,10 @@ function culturefeed_pages_add_request_send(& $form, & $form_state) { $activity = new CultureFeed_Activity(); $activity->nodeId = $page_id; $activity->nodeTitle = $form_state['values']['name']; + $activity->contentType = CultureFeed_Activity::CONTENT_TYPE_CULTUREFEED_PAGE; + $activity->type = CultureFeed_Activity::TYPE_PAGE_CREATED; + $activity->userId = DrupalCultureFeed::getLoggedInUserId(); + DrupalCultureFeed::createActivity($activity); drupal_set_message(format_string(t('Page "@page" has been created.'), array('@page' => $form_state['values']['name']))); }