code: public function getModules()
  	{
  		$arrModules = array();
  
  		foreach ($GLOBALS['BE_MOD'] as $k=>$v)
  		{
  			if (!empty($v))
  			{
  				if ($k == 'accounts')
  				{
  					unset($v['login']);
  				}
  
  				if ($k == 'system')
  				{
  					unset($v['undo']);
  				}
  
  				$arrModules[$k] = array_keys($v);
  			}
  		}
  
  		return $arrModules;
  	}
docs: Return all modules except profile modules
  
  @return array