You are here

function _webform_update_8045_is_submodule_config in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.install.update.inc \_webform_update_8045_is_submodule_config()

Check if config is from a Webform submodule.

Parameters

string $webform_config_name: Webform config file name.

Return value

bool TRUE if config is from a Webform submodule.

1 call to _webform_update_8045_is_submodule_config()
webform_update_8045 in includes/webform.install.update.inc
Issue #2878307: webform example module disable causes a customized webform deleted.

File

includes/webform.install.update.inc, line 959
Archived Webform update hooks.

Code

function _webform_update_8045_is_submodule_config($webform_config_name) {
  $modules = WebformReflectionHelper::getSubModules();
  foreach ($modules as $module) {
    if (file_exists(drupal_get_path('module', $module) . "/config/install/{$webform_config_name}.yml")) {
      return TRUE;
    }
  }
  return FALSE;
}