[buddypress-trac] [BuddyPress] #2355: bp_core_new_nav_item doesn't allow for an array as a callback.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Nov 5 21:38:05 UTC 2010


#2355: bp_core_new_nav_item doesn't allow for an array as a callback.
--------------------------+-------------------------------------------------
  Reporter:  brandondove  |       Owner:                      
      Type:  enhancement  |      Status:  closed              
  Priority:  normal       |   Milestone:  1.3                 
 Component:  Core         |     Version:                      
Resolution:  worksforme   |    Keywords:  bp_core_new_nav_item
--------------------------+-------------------------------------------------
Changes (by boonebgorges):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 It works if you use this kind of syntax:


 {{{
 class Foo {

         function Foo() {
                 bp_core_new_nav_item( array(
                         '...' => '...',
                         'screen_function' => $this->show_user_ideas(),
                         '...' => '...'
                 ) );
         }

         function show_user_ideas() { ... }
 }
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2355#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list