Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
veerlehanssens committed Sep 17, 2013
2 parents 8e53cc1 + 222c51a commit de72d87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions culturefeed_pages/includes/pages.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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'])));
}
Expand Down

0 comments on commit de72d87

Please sign in to comment.