You are here

function picture_admin_settings in Picture 7

Same name and namespace in other branches
  1. 7.2 picture.admin.inc \picture_admin_settings()

Picture settings.

1 string reference to 'picture_admin_settings'
picture_menu in ./picture.module
Implements hook_menu().

File

./picture.admin.inc, line 214
Picture - map breakpoints and image styles

Code

function picture_admin_settings($form, &$form_state) {
  $form['picture_implementation'] = array(
    '#type' => 'select',
    '#title' => t('Choose the javascript library to use'),
    '#options' => array(
      PICTURE_IMPLEMENTATION_PICTUREFILL2 => 'picturefill 2.0',
      PICTURE_IMPLEMENTATION_PICTUREFILL => 'picturefill',
      PICTURE_IMPLEMENTATION_WEBLINC => 'weblinc',
    ),
    '#default_value' => variable_get('picture_implementation', PICTURE_IMPLEMENTATION_DEFAULT),
  );
  if (module_exists('file_entity') && function_exists('file_type_load_all') && !variable_get('picture_updated_to_file_entity_2', FALSE)) {
    $form['picture_updated_to_file_entity_2'] = array(
      '#type' => 'checkbox',
      '#title' => t('Update the file formatter to version 2 of the File Entity module'),
      '#default_value' => variable_get('picture_updated_to_file_entity_2', FALSE),
    );
  }
  $form['#submit'][] = 'picture_admin_settings_submit';
  $form = system_settings_form($form);
  return $form;
}