function RulesAbstractPlugin::variableInfoAssertions

Overrides RulesPlugin::variableInfoAssertions

File

includes/rules.core.inc, line 1648

Class

RulesAbstractPlugin
Defines a common base class for so-called "Abstract Plugins" like actions.

Code

protected function variableInfoAssertions() {
    // Get the implementation's assertions and map them to the variable names.
    if ($assertions = $this->__call('assertions')) {
        foreach ($assertions as $param_name => $data) {
            $name = isset($this->settings[$param_name . ':select']) ? $this->settings[$param_name . ':select'] : $param_name;
            $return[$name] = $data;
        }
        return $return;
    }
}