Plugin.DisableFunction
----------------------

Disables a plugin function.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Plugin](component_Plugin.md) | [2.8](newinversion28.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Plugin.DisableFunction"; Name ) 

**MBS**( **"Plugin.DisableFunction";** /\* Disables a plugin function. \*/  
**$Name**) /\* A function name like [RemoteControl.ClickMouse](RemoteControlClickMouse.md).e.g. "RemoteControl.ClickMouse" \*/ 

(old name: DisableFunction)

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | A function name like [RemoteControl.ClickMouse](RemoteControlClickMouse.md). | "RemoteControl.ClickMouse" |

### Result

Returns OK on success.

### Description

Disables a plugin function.  
This can be useful with security when you want to be sure your script does not use certain methods.  
The plugin removes the function from the global function list so it can't be called until you restart FileMaker.  
### Examples

Disable a function:

 $r = MBS ( "Plugin.DisableFunction"; "[RemoteControl.ClickMouse](RemoteControlClickMouse.md)" )  
### See also

- [RemoteControl.ClickMouse](RemoteControlClickMouse.md)

This function is free to use.

Created 18th August 2014 , last changed 21st October 2017

  
[Plugin.CustomFunctions](PluginCustomFunctions.md) - [Plugin.FunctionCount](PluginFunctionCount.md)

[HTML Version](PluginDisableFunction.shtml)