public static CmsMenuItemVisibilityMode visibilityCheckHasModule(String name) {

        if (OpenCms.getModuleManager().hasModule(name)) {
            return CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE;
        } else {
            return CmsMenuItemVisibilityMode.VISIBILITY_INVISIBLE;
        }
    }
public static CmsMenuItemVisibilityMode visibilityCheckHasModule ( String name ) { if ( OpenCms . getModuleManager ( ) . hasModule ( name ) ) { return CmsMenuItemVisibilityMode . VISIBILITY_ACTIVE ; } else { return CmsMenuItemVisibilityMode . VISIBILITY_INVISIBLE ; } }
Returns VISIBILITY_ACTIVE if a module with the given name exists, and VISIBILITY_INVISIBLE otherwise. <p>

@param name a module name
@return the visibility