core-bundle/src/Resources/contao/dca/tl_user.php
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;
	}
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;
	}
Return all modules except profile modules

@return array