Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/30/2015 06:22:31 AM (10 years ago)
Author:
tw2113
Message:

Further docs cleanup for BP Groups component.

See #6401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-actions.php

    r9906 r9982  
    22
    33/**
    4  * BuddyPress Groups Actions
     4 * BuddyPress Groups Actions.
    55 *
    66 * Action functions are exactly the same as screen functions, however they do
     
    6363     * @since BuddyPress (2.1.0)
    6464     *
    65      * @param bool $user_has_access True if the user has access to the
    66      *        content, otherwise false.
    67      * @param array $no_access_args Arguments to be passed to
    68      *        bp_core_no_access() in case of no access. Note that this
    69      *        value is passed by reference, so it can be modified by the
    70      *        filter callback.
     65     * @param bool  $user_has_access True if the user has access to the
     66     *                               content, otherwise false.
     67     * @param array $no_access_args  Arguments to be passed to bp_core_no_access() in case
     68     *                               of no access. Note that this value is passed by reference,
     69     *                               so it can be modified by the filter callback.
    7170     */
    7271    $user_has_access = apply_filters_ref_array( 'bp_group_user_has_access', array( $user_has_access, &$no_access_args ) );
    7372
    74     // If user has access, we return rather than redirect
     73    // If user has access, we return rather than redirect.
    7574    if ( $user_has_access ) {
    7675        return;
     
    7978    // Hidden groups should return a 404 for non-members.
    8079    // Unset the current group so that you're not redirected
    81     // to the default group tab
     80    // to the default group tab.
    8281    if ( 'hidden' == $current_group->status ) {
    8382        buddypress()->groups->current_group = 0;
Note: See TracChangeset for help on using the changeset viewer.