You are here

function image_attach_admin_settings in Image 5

Same name and namespace in other branches
  1. 5.2 contrib/image_attach/image_attach.module \image_attach_admin_settings()
  2. 6 contrib/image_attach/image_attach.module \image_attach_admin_settings()
1 string reference to 'image_attach_admin_settings'
image_attach_menu in contrib/image_attach/image_attach.module
Implementation of hook_menu()

File

contrib/image_attach/image_attach.module, line 47
image_attach.module

Code

function image_attach_admin_settings() {
  $form = array();
  $form['image_attach_existing'] = array(
    '#type' => 'radios',
    '#title' => t('Attach existing images'),
    '#default_value' => variable_get('image_attach_existing', 1),
    '#options' => array(
      0 => 'Disabled',
      1 => 'Enabled',
    ),
    '#description' => t('When enabled, will allow existing image nodes to be attached instead of uploading new images.'),
  );
  return system_settings_form($form);
}