Changeset 6988 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 05/01/2013 08:12:37 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r6987 r6988 1467 1467 ); 1468 1468 1469 // Attach the group creation step display content action 1470 add_action( 'groups_custom_create_steps', array( &$this, 'create_screen' ) ); 1471 1472 // Attach the group creation step save content action 1473 add_action( 'groups_create_group_step_save_' . $this->create_slug, array( &$this, 'create_screen_save' ) ); 1469 // The maybe_ methods check to see whether the create_* 1470 // callbacks should be invoked (ie, are we on the 1471 // correct group creation step). Hooked in separate 1472 // methods because current creation step info not yet 1473 // available at this point 1474 add_action( 'groups_custom_create_steps', array( $this, 'maybe_create_screen' ) ); 1475 add_action( 'groups_create_group_step_save_' . $this->create_slug, array( $this, 'maybe_create_screen_save' ) ); 1474 1476 } 1475 1477 … … 1568 1570 ); 1569 1571 } 1572 1573 /** 1574 * Call the create_screen() method, if we're on the right page 1575 * 1576 * @since 1.8 1577 */ 1578 public function maybe_create_screen() { 1579 if ( bp_is_group_creation_step( $this->slug ) ) { 1580 $this->create_screen(); 1581 } 1582 } 1583 1584 /** 1585 * Call the create_screen_save() method, if we're on the right page 1586 * 1587 * @since 1.8 1588 */ 1589 public function maybe_create_screen_save() { 1590 if ( bp_is_group_creation_step( $this->slug ) ) { 1591 $this->create_screen_save(); 1592 } 1593 } 1594 1570 1595 } 1571 1596
Note: See TracChangeset
for help on using the changeset viewer.