Changeset 1809 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 09/07/2009 06:46:37 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r1807 r1809 926 926 var $nav_item_name = false; 927 927 928 var $display_hook = 'groups_custom_group_boxes'; 928 929 var $template_file = 'plugin-template'; 929 930 … … 1004 1005 /* Hook the group home widget */ 1005 1006 if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) ) 1006 add_action( 'groups_custom_group_boxes', array( &$this, 'widget_display' ) );1007 add_action( $this->display_hook, array( &$this, 'widget_display' ) ); 1007 1008 } 1008 1009 } … … 1020 1021 return false; 1021 1022 1022 $extension = new $group_extension_class;1023 add_action( ' wp', array( &$extension, '_register' ), 2);1023 /* Register the group extension on the plugins_loaded action so we have access to all plugins */ 1024 add_action( 'plugins_loaded', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "wp", array( &$extension, "_register" ), 2 );' ) ); 1024 1025 } 1025 1026
Note: See TracChangeset
for help on using the changeset viewer.