You are here

CommonUtils.php in Node expire 7.2

CommonUtils class.

File

src/Module/CommonExpire/Utils/CommonUtils.php
View source
<?php

/**
 * @file
 * CommonUtils class.
 */
namespace Drupal\node_expire\Module\CommonExpire\Utils;


/**
 * CommonUtils class.
 */
class CommonUtils {

  /**
   * Cleans up variables by template.
   */
  public static function doVariablesCleanupByTemplate($template) {
    $result = db_query("\n    SELECT name FROM {variable}\n    WHERE name LIKE '" . $template . "'");
    foreach ($result as $row) {
      variable_del($row->name);
    }
  }

}

Classes

Namesort descending Description
CommonUtils CommonUtils class.