You are here

function drush_yamlform_repair in YAML Form 8

Implements drush_hook_COMMAND().

File

drush/yamlform.drush.inc, line 498
YAML Form module drush commands.

Code

function drush_yamlform_repair() {
  if (!drush_confirm(dt("Are you sure you want repair the YAML Form module's admin settings and forms?"))) {
    return drush_user_abort();
  }
  module_load_include('install', 'yamlform');
  drush_print('Repairing admin settings...');
  _yamlform_update_admin_settings();
  drush_print('Repairing form settings...');
  _yamlform_update_form_settings();
}