PluginManager.js
function RemovePlugin (ext_module_id) {
  let copy = plugins[ext_module_id]

  let runPreWorkflowFunctions = function () {
    if (!plugins[ext_module_id].PreRemovePlugin) throw new Error('Error: PreRemovePlugin function must be implemented.')
    plugins[ext_module_id].PreRemovePlugin()
  }

  let runPostWorkflowFunctions = function () {
    if (!copy.PostRemovePlugin) throw new Error('Error: PostRemovePlugin function must be implemented.')
    copy.PostRemovePlugin(module.exports)
  }

  runPreWorkflowFunctions()
  delete plugins[ext_module_id]
  log.info('Removed Plugin', ext_module_id)
  runPostWorkflowFunctions()

  return true
}
function RemovePlugin (ext_module_id) {
  let copy = plugins[ext_module_id]

  let runPreWorkflowFunctions = function () {
    if (!plugins[ext_module_id].PreRemovePlugin) throw new Error('Error: PreRemovePlugin function must be implemented.')
    plugins[ext_module_id].PreRemovePlugin()
  }

  let runPostWorkflowFunctions = function () {
    if (!copy.PostRemovePlugin) throw new Error('Error: PostRemovePlugin function must be implemented.')
    copy.PostRemovePlugin(module.exports)
  }

  runPreWorkflowFunctions()
  delete plugins[ext_module_id]
  log.info('Removed Plugin', ext_module_id)
  runPostWorkflowFunctions()

  return true
}
function RemovePlugin ( ext_module_id ) { let copy = plugins [ ext_module_id ] let runPreWorkflowFunctions = function ( ) { if ( ! plugins [ ext_module_id ] . PreRemovePlugin ) throw new Error ( 'Error: PreRemovePlugin function must be implemented.' ) plugins [ ext_module_id ] . PreRemovePlugin ( ) } let runPostWorkflowFunctions = function ( ) { if ( ! copy . PostRemovePlugin ) throw new Error ( 'Error: PostRemovePlugin function must be implemented.' ) copy . PostRemovePlugin ( module . exports ) } runPreWorkflowFunctions ( ) delete plugins [ ext_module_id ] log . info ( 'Removed Plugin' , ext_module_id ) runPostWorkflowFunctions ( ) return true }
Removes an existing Extention plugin from the library
@param {string} ext_module_id is the id of the module to remove.
@return {boolean} True the plugin was successfully removed.
Removes an existing Extention plugin from the library