function skinr_info_options_to_form_options in Skinr 6
Helper function to convert an array of options, as specified in the info file, into an array usable by form api.
1 call to skinr_info_options_to_form_options()
- skinr_form_alter in ./
skinr.module - Implementation of hook_form_alter().
File
- ./
skinr.module, line 635
Code
function skinr_info_options_to_form_options($options) {
$form_options = array();
foreach ($options as $option) {
$form_options[$option['class']] = t($option['label']);
}
return $form_options;
}