/**
* Get option values for one or all fields
*
* @param string|array $field The field to get
* @return mixed Whatever is in those fields
*/
public function get( $field = null, $default = null ) {
$data = array_merge( $this->defaults, get_option( $this->key, array() ) );
return scbForms::get_value( $field, $data, $default );
}
/**
* Get option values for one or all fields
*
* @param string|array $field The field to get
* @return mixed Whatever is in those fields
*/
public function get( $field = null, $default = null ) {
$tmp = get_option( $this->key, array() );
if($tmp == false)
{
$data = array_merge( $this->defaults, array() );
}
else
{
$data = array_merge( $this->defaults, $tmp );
}
return scbForms::get_value( $field, $data, $default );
}
There are currently 1 users browsing this thread. (0 members and 1 guests)