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

@param DynamicModule $module the module to deactivate
@return boolean true if deactivated
Change the state of a module to inactive