[buddypress-trac] [BuddyPress] #3206: Group extensions should be able to register admin and non-admin $name

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon May 9 19:27:32 UTC 2011


#3206: Group extensions should be able to register admin and non-admin $name
---------------------------+-----------------
  Reporter:  boonebgorges  |      Owner:
      Type:  enhancement   |     Status:  new
  Priority:  minor         |  Milestone:  1.4
 Component:  Groups        |    Version:  1.3
Resolution:                |   Keywords:
---------------------------+-----------------

Comment (by r-a-y):

 +1.

 At the moment, I use a workaround where I check the action variable first
 and then change the name accordingly.

 I do this for the "Create A Step" name, but could be easily done with the
 group admin as well.

 {{{
 // workaround to change the "create a step" name
 if ( $bp->action_variables[0] == 'step' ) {
         $this->name = __( 'Name', 'bp-ext' );
 }
 else {
         $this->name = __( 'Full Extension Name', 'bp-ext' );
 }
 }}}

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3206#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list