AnsPress_Validation::name_to_key()
Description #
Add name value as array key.
Source #
File: includes/class/validation.php
private function name_to_key() { foreach ( (array) $this->args as $k => $f ) { if ( isset( $f['name'] ) ) { $name = $f['name']; unset( $f['name'] ); unset( $this->args[ $k ] ); $this->args[ $name ] = $f; } } }
Expand full source code Collapse full source code View on GitHub: includes/class/validation.php:42
Add your comment