Custom entity api create options list for checkboxes without field api I want to create a checkbox widget in my custom entity to select multiple options. 

I don't want to use the field api, instead I want to use my custom table with multiple columns, one of them shall have the values which were chosen.

For select I use the following:

$info['pricedefault']['properties']['preis_zeiteinheit'] = array(
'label' =&gt; t('Time unit'),
'description' =&gt; t('Preis Zeiteinheit'),
'type' =&gt; 'integer',
'schema field' =&gt; 'preis_zeiteinheit',
'options list' =&gt; 'zeiteinheit_options_list',
'translatable' =&gt; TRUE, 
);


and

function zeiteinheit_options_list(){
return array(0=&gt;t('0'),1 =&gt; t('YEAR'),2 =&gt;t('MONTH'),3=&gt;t('WEEK'),4=&gt;t('DAY'));
}


But how to write a checkbox function with the correct table column?

Thx in advance,

maen
To store multiple value property values, without the field API, you may find it easier to create a generic extended properties table for one-to-many relationship with the base table.

e.g a table 

Table: my_entity_properties

Columns: entity_id | revision_id | name | value


You can then store the extended properties in that table in the save function for your entity - each field value will be a row with the property name and value pair.
You then load them in the attachLoad function, grouping by the revision_id and property name to load the values for that entity revision.