public function activateModule(DynamicModule $module)
    {
        if (!is_null($module)) {
            $module->setActive(true);
            return $this->registry->register($module);
        }

        return false;
    }
public function activateModule(DynamicModule $module)
    {
        if (!is_null($module)) {
            $module->setActive(true);
            return $this->registry->register($module);
        }

        return false;
    }
public function activateModule ( DynamicModule $ module ) { if ( ! is_null ( $ module ) ) { $ module -> setActive ( true ) ; return $ this -> registry -> register ( $ module ) ; } return false ; }
Change the state of a module to active

@param DynamicModule $module the module to activate
@return boolean true if activated
Change the state of a module to active