from xmodule.raw_module import RawDescriptor
from xmodule.x_module import XModule


class HiddenModule(XModule):

    HIDDEN = True

    def get_html(self):
        if self.system.user_is_staff:
            return u"ERROR: This module is unknown--students will not see it at all"
        else:
            return u""


class HiddenDescriptor(RawDescriptor):
    module_class = HiddenModule
    resources_dir = None
