You are here

protected function RulesPlugin::checkVarName in Rules 7.2

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 903
Rules base classes and interfaces needed for any rule evaluation.

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);
  }
}