Skip to content

Instantly share code, notes, and snippets.

@JimMackin
Created October 22, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JimMackin/468af5db284c2747c7e3 to your computer and use it in GitHub Desktop.
Save JimMackin/468af5db284c2747c7e3 to your computer and use it in GitHub Desktop.
SuiteCRM Colour Picker Studio Template
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('modules/DynamicFields/templates/Fields/TemplateField.php');
class TemplateColourPicker extends TemplateField{
var $type='ColourPicker';
function get_field_def(){
$def = parent::get_field_def();
$def['dbType'] = 'varchar';
return $def;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment