Changeset 709902
- Timestamp:
- 05/08/2013 02:13:16 PM (13 years ago)
- File:
-
- 1 edited
-
buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php
r709870 r709902 785 785 * 786 786 * 787 * @param array $args ($username, $password, $data['max' ] )787 * @param array $args ($username, $password, $data['max', 'user', 'action', 'action_id'] ) 788 788 * 789 789 * max = max to return 790 790 * user = true?for logged in user 791 * 791 * action performs some action on action_id first 792 792 * 793 793 * @return array groups; … … 811 811 if ( !$user = $this->login( $username, $password ) ) 812 812 return $this->error; 813 814 $action_data = $data['action_data']; 815 $action_id = $data['action_id']; 816 817 // actions 818 819 if(isset($data['action'])) { 820 switch($data['action']) { 821 case 'join': 822 groups_join_group( $action_id, $bp->loggedin_user->id ); 823 break; 824 case 'leave': 825 groups_leave_group( $action_id, $bp->loggedin_user->id ); 826 break; 827 case 'delete': 828 groups_delete_group( $action_id ); 829 break; 830 } 831 } 832 813 833 814 834 $max = @$data['max']?(int)$data['max']:0;
Note: See TracChangeset
for help on using the changeset viewer.