function file_field_widget_settings_form
file_field_widget_settings_form($field, $instance)
Implements hook_field_widget_settings_form().
File
- modules/file/file.field.inc, line 440
- Field module functionality for the File module.
Code
function file_field_widget_settings_form($field, $instance) { $widget = $instance['widget']; $settings = $widget['settings']; $form['progress_indicator'] = array( '#type' => 'radios', '#title' => t('Progress indicator'), '#options' => array( 'throbber' => t('Throbber'), 'bar' => t('Bar with progress meter'), ), '#default_value' => $settings['progress_indicator'], '#description' => t('The throbber display does not show the status of uploads but takes up less space. The progress bar is helpful for monitoring progress on large uploads.'), '#weight' => 16, '#access' => file_progress_implementation(), ); return $form; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!file!file.field.inc/function/file_field_widget_settings_form/7.x