class CommonUtils in Node expire 7.2
CommonUtils class.
Hierarchy
- class \Drupal\node_expire\Module\CommonExpire\Utils\CommonUtils
Expanded class hierarchy of CommonUtils
1 file declares its use of CommonUtils
- ModuleUtils.php in src/
Module/ Utils/ ModuleUtils.php - ModuleUtils class.
File
- src/
Module/ CommonExpire/ Utils/ CommonUtils.php, line 13 - CommonUtils class.
Namespace
Drupal\node_expire\Module\CommonExpire\UtilsView source
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);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommonUtils:: |
public static | function | Cleans up variables by template. |