You are here

public static function ModuleUtils::doVariablesCleanup in Node expire 7.2

Cleans up redundant plain variables.

1 call to ModuleUtils::doVariablesCleanup()
FormHookHelper::doFormNodeTypeFormAlterSubmit in src/Module/Hook/FormHookHelper.php
Implements hook_form_alter().

File

src/Module/Utils/ModuleUtils.php, line 20
ModuleUtils class.

Class

ModuleUtils
ModuleUtils class.

Namespace

Drupal\node_expire\Module\Utils

Code

public static function doVariablesCleanup() {

  // TODO: Optimize and find out source of node_expire_page	N; .
  // TODO: Add some common name like node_expire_type_cfg_
  // for easy cleanup.
  // Delete node type related variables.
  CommonUtils::doVariablesCleanupByTemplate('node_expire_type_cfg_%');
}