Changeset 2032 for trunk/bp-groups.php
- Timestamp:
- 10/05/2009 06:05:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2025 r2032 605 605 $topic_id = bp_forums_get_topic_id_from_slug( $topic_slug ); 606 606 $forum_id = groups_get_groupmeta( $bp->groups->current_group->id, 'forum_id' ); 607 607 608 608 if ( $topic_slug && $topic_id ) { 609 609 … … 2138 2138 if ( empty( $topic_title ) || empty( $topic_text ) ) 2139 2139 return false; 2140 2140 2141 2141 if ( $topic_id = bp_forums_new_topic( array( 'topic_title' => $topic_title, 'topic_text' => $topic_text, 'topic_tags' => $topic_tags, 'forum_id' => $forum_id ) ) ) { 2142 2142 $topic = bp_forums_get_topic_details( $topic_id ); … … 2155 2155 2156 2156 do_action( 'groups_new_forum_topic', $bp->groups->current_group->id, &$topic ); 2157 2157 2158 2158 return $topic; 2159 2159 }
Note: See TracChangeset
for help on using the changeset viewer.