You are here

media_library.admin.inc in Media Library 7

Same filename and directory in other branches
  1. 6 media_library.admin.inc

Media Library administration and module settings UI.

File

media_library.admin.inc
View source
<?php

/**
 * @file
 * Media Library administration and module settings UI.
 */

/**
 * Form callback for Media Library settings.
 */
function media_library_settings_form($form, &$form_state) {
  $form['media_library_file_add_default'] = array(
    '#type' => 'checkbox',
    '#title' => t('Add files to the media library by default'),
    '#default_value' => variable_get('media_library_file_add_default', FALSE),
    '#description' => t('Users may choose to include files added through the <a href="@url">file uploaded wizard</a> in the media library. Enable this setting to opt newly added files into the media library by default.', array(
      '@url' => url('file/add'),
    )),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
media_library_settings_form Form callback for Media Library settings.