You are here

function media_settings_global in D7 Media 6

Provide global settings.

Parameters

array $form: A form structure.

string $type_name: Content type name.

Return value

array A form structure.

1 string reference to 'media_settings_global'
media_menu in ./media.module
Implementation of hook_menu().

File

./media_settings.inc, line 88
This file contains the admin functions for the Media module.

Code

function media_settings_global($form = array(), $type_name = NULL) {

  // Create global options form structure.
  $form = array();

  // Global settings are currently just defaults for content types
  if ($type_name == 'global') {
    $form['media_global_enabled'] = array(
      '#title' => t('Media resource browser'),
      '#type' => 'checkbox',
      '#description' => t('Enable or Disable the Media resource browser for all types, unless specifically set for a given type.'),
      '#default_value' => variable_get('media_global_enabled', 1),
    );
  }
  return system_settings_form($form);
}