function skinr_ui_info_options_to_form_options in Skinr 6.2
Same name and namespace in other branches
- 7.2 skinr_ui.edit.inc \skinr_ui_info_options_to_form_options()
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_ui_info_options_to_form_options()
- skinr_ui_form_alter in ./
skinr_ui.module - Implementation of hook_form_alter().
File
- ./
skinr_ui.module, line 768
Code
function skinr_ui_info_options_to_form_options($options) {
$form_options = array();
foreach ($options as $option) {
$form_options[$option['class']] = t($option['label']);
}
return $form_options;
}