Page tree
Skip to end of metadata
Go to start of metadata


This documentation assumes you already understand the hooking process for BMO and will not show that information. Please go HERE for information on BMO Hooks


In some situations you may wish to hook in to the backup process with your module. Below is the places where hooking has been added.

Universal Hooks

NamespaceClassCalling MethodArgumentsUseDescription



$id: the id of the backup settings are being requested for

public function getBackupSettingsDisplay($id){
  $settings = !empty($id) ? $this->getAll('backup_'.$id) : [];
  return load_view(__DIR__.'/views/backupSettings.php',$settings);

Used to add module settings to the module grid on the backup form. These in turn may be added to the modules json file for additional processing.
FreePBX\modulesBackupprocessBackupSettings(id, $settings);

$id: the id of the backup settings are being processed for

$settings: Settings specific to this module saved from the backup

public function processBackupSettings($id, $settings){
Used to save/process module settings from the backup form.

  • No labels