forked from GNUsocial/gnu-social
		
	Add a hook for group action list
This commit is contained in:
		@@ -1082,3 +1082,11 @@ EndInterpretCommand: Before running a command
 | 
				
			|||||||
- $user: User who issued the command
 | 
					- $user: User who issued the command
 | 
				
			||||||
- $result: Resulting command
 | 
					- $result: Resulting command
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					StartGroupActionsList: Start the list of actions on a group profile page (after <ul>, before first <li>)
 | 
				
			||||||
 | 
					- $action: action being executed (for output and params)
 | 
				
			||||||
 | 
					- $group: group for the page
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EndGroupActionsList: End the list of actions on a group profile page (before </ul>, after last </li>)
 | 
				
			||||||
 | 
					- $action: action being executed (for output and params)
 | 
				
			||||||
 | 
					- $group: group for the page
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -303,6 +303,7 @@ class ShowgroupAction extends GroupDesignAction
 | 
				
			|||||||
        // TRANS: Group actions header (h2). Text hidden by default.
 | 
					        // TRANS: Group actions header (h2). Text hidden by default.
 | 
				
			||||||
        $this->element('h2', null, _('Group actions'));
 | 
					        $this->element('h2', null, _('Group actions'));
 | 
				
			||||||
        $this->elementStart('ul');
 | 
					        $this->elementStart('ul');
 | 
				
			||||||
 | 
					        if (Event::handle('StartGroupActionsList', array($this, $this->group))) {
 | 
				
			||||||
            $this->elementStart('li', 'entity_subscribe');
 | 
					            $this->elementStart('li', 'entity_subscribe');
 | 
				
			||||||
            if (Event::handle('StartGroupSubscribe', array($this, $this->group))) {
 | 
					            if (Event::handle('StartGroupSubscribe', array($this, $this->group))) {
 | 
				
			||||||
                if ($cur) {
 | 
					                if ($cur) {
 | 
				
			||||||
@@ -323,6 +324,8 @@ class ShowgroupAction extends GroupDesignAction
 | 
				
			|||||||
                $df->show();
 | 
					                $df->show();
 | 
				
			||||||
                $this->elementEnd('li');
 | 
					                $this->elementEnd('li');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            Event::handle('EndGroupActionsList', array($this, $this->group));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        $this->elementEnd('ul');
 | 
					        $this->elementEnd('ul');
 | 
				
			||||||
        $this->elementEnd('div');
 | 
					        $this->elementEnd('div');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user