function RulesPlugin::checkVarName
2 calls to RulesPlugin::checkVarName()
- RulesLoop::integrityCheck in includes/
rules.plugins.inc - Makes sure the plugin is configured right.
- RulesPlugin::integrityCheck in includes/
rules.core.inc - Makes sure the plugin is configured right.
File
-
includes/
rules.core.inc, line 906
Class
- RulesPlugin
- Base class for rules plugins.
Code
protected function checkVarName($name) {
if (!preg_match('/^[0-9a-zA-Z_]*$/', $name)) {
throw new RulesIntegrityException(t('%plugin: The variable name %name contains not allowed characters.', array(
'%plugin' => $this->getPluginName(),
'%name' => $name,
)), $this);
}
}