/**
* get options for a percent type field
*/
function votingapi_field_get_percent_options($field) {
return array(
'0' => '0%',
'5' => '5%',
'10' => '10%',
'15' => '15%',
'20' => '20%',
'25' => '25%',
'30' => '30%',
'35' => '35%',
'40' => '40%',
'45' => '45%',
'50' => '50%',
'55' => '55%',
'60' => '60%',
'65' => '65%',
'70' => '70%',
'75' => '75%',
'80' => '80%',
'85' => '85%',
'90' => '90%',
'95' => '95%',
'100' => '100%',
);
}
| Comment | File | Size | Author |
|---|---|---|---|
| votingapi_field.module | 16.34 KB | morphir |
Comments
Comment #1
dfletcher commentedComment #2
dfletcher commented