function imagepicker_browser_order_elem in Image Picker 7
Same name and namespace in other branches
- 6.2 imagepicker.form-elements.inc \imagepicker_browser_order_elem()
2 calls to imagepicker_browser_order_elem()
- imagepicker_settings_form in ./
imagepicker.admin.inc - Function to display the imagepicker admin settings form
- imagepicker_user_config_admin_form in ./
imagepicker.user.inc - Submit form
File
- ./
imagepicker.form-elements.inc, line 186 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function imagepicker_browser_order_elem($default = NULL) {
return array(
'#type' => 'select',
'#title' => t('Default order'),
'#description' => t('The default order used to sort the browser. This will be applied wether or not the select box is visible'),
'#default_value' => $default != NULL ? $default : imagepicker_variable_get('imagepicker_default_browser_order', 'img_id DESC'),
'#options' => array(
'img_id DESC' => t('Newest first'),
'img_id ASC' => t('Newest last'),
'img_date DESC' => t('Edited first'),
'img_date ASC' => t('Edited last'),
'img_name' => t('By name'),
),
);
}