public function disable()
    {
        $this->assertIsDebugMode();

	    $extId = $this->getRequestParameter('id');
        $this->getExtensionManager()->setEnabled($extId, false);
	    MenuService::flushCache();
        $this->returnJson(array(
	        'success' => true,
	        'message' => __('Disabled %s', $this->getRequestParameter('id'))
	    ));
	}
public function disable()
    {
        $this->assertIsDebugMode();

	    $extId = $this->getRequestParameter('id');
        $this->getExtensionManager()->setEnabled($extId, false);
	    MenuService::flushCache();
        $this->returnJson(array(
	        'success' => true,
	        'message' => __('Disabled %s', $this->getRequestParameter('id'))
	    ));
	}
public function disable ( ) { $ this -> assertIsDebugMode ( ) ; $ extId = $ this -> getRequestParameter ( 'id' ) ; $ this -> getExtensionManager ( ) -> setEnabled ( $ extId , false ) ; MenuService :: flushCache ( ) ; $ this -> returnJson ( array ( 'success' => true , 'message' => __ ( 'Disabled %s' , $ this -> getRequestParameter ( 'id' ) ) ) ) ; }
Disable an extension

@throws common_exception_BadRequest If platform is on production mode
@throws common_exception_Error
Disable an extension