public function RulesFormsElementWrapper::getElementKey in Rules Forms Support 7.2
Returns an element key.
Parameters
string $name: The name of the element key to return.
Return value
string|false The indicated key or FALSE if none was found.
3 calls to RulesFormsElementWrapper::getElementKey()
- RulesFormsElementWrapper::getElementValue in includes/
rules_forms.wrapper.inc - Returns the current value of the form element.
- RulesFormsElementWrapper::setElementDefaultValue in includes/
rules_forms.wrapper.inc - Sets the default value of the form element.
- RulesFormsElementWrapper::setElementValue in includes/
rules_forms.wrapper.inc - Sets the value of the form element.
File
- includes/
rules_forms.wrapper.inc, line 162 - Manages and Process Form structure.
Class
- RulesFormsElementWrapper
- Wrapper class for form element arrays.
Code
public function getElementKey($name) {
if (isset($this->info['element info']['keys'][$name])) {
return $this->info['element info']['keys'][$name];
}
return FALSE;
}