You are here

function drush_yamlform_tidy_validate in YAML Form 8

Implements drush_hook_COMMAND_validate().

File

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

Code

function drush_yamlform_tidy_validate($module = 'yamlform') {
  if (!file_exists(drupal_get_path('module', $module) . '/config')) {
    $t_args = [
      '@module' => $module,
      '@directory' => drupal_get_path('module', $module) . '/config',
    ];
    return drush_set_error(dt("@module does not contain a '@module/config' directory (@directory).", $t_args));
  }
}