beta2/administrator/components/com_users/views/groups/view.html.php
/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
Add the page title and toolbar.
Add the page title and toolbar .
protected function addToolbar()
	{
		$canDo	= UsersHelper::getActions();
		JToolBarHelper::title(JText::_('COM_USERS_VIEW_GROUPS_TITLE'), 'groups');
		if ($canDo->get('core.create')) {
			JToolBarHelper::addNew('group.add');
		}
		if ($canDo->get('core.edit')) {
			JToolBarHelper::editList('group.edit');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.delete')) {
			JToolBarHelper::deleteList('', 'groups.delete');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.admin')) {
			JToolBarHelper::preferences('com_users');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_USERS_GROUPS');
	}
protected function addToolbar ( ) { $ canDo = UsersHelper :: getActions ( ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_USERS_VIEW_GROUPS_TITLE' ) , 'groups' ) ; if ( $ canDo -> get ( 'core.create' ) ) { JToolBarHelper :: addNew ( 'group.add' ) ; } if ( $ canDo -> get ( 'core.edit' ) ) { JToolBarHelper :: editList ( 'group.edit' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.delete' ) ) { JToolBarHelper :: deleteList ( '' , 'groups.delete' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: preferences ( 'com_users' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_USERS_GROUPS' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .