/** * Determines the value for the element in the form view. Ensure its set to be a r,g,b string * * @param array $data Form data * @param int $repeatCounter When repeating joined groups we need to know what part of the array to access * @param array $opts Options, 'raw' = 1/0 use raw value * * @return string value */ public function getValue($data, $repeatCounter = 0, $opts = array()) { $value = parent::getValue($data, $repeatCounter, $opts); $value = strstr($value, '#') ? FabrikString::hex2rgb($value) : $value; return $value; }