You are here

file_force.admin.inc in File Force Download 6.2

file_force.admin.inc

File Force module.

Admin page callbacks for the File Force module.

File

file_force.admin.inc
View source
<?php

/**
 * @file file_force.admin.inc
 * 
 * File Force module.
 *
 * Admin page callbacks for the File Force module.
 */

/**
 * Form builder; Configure File Force settings.
 *
 * @ingroup forms
 * @see system_settings_form()
 */
function file_force_settings() {
  $form['description'] = array(
    '#value' => t('Please select the locations where you want File Force type links to be enabled by default. Note that if your theme already overrides a particular function, selecting it here will have no effect!'),
  );
  $form['file_force_upload_attachments'] = array(
    '#type' => 'checkbox',
    '#title' => t('Upload module attachments'),
    '#default_value' => variable_get('file_force_upload_attachments', 0),
    '#description' => t('See !api_link or !itweak_link', array(
      '!api_link' => l('theme_upload_attachments', 'http://api.drupal.org/api/drupal/modules!upload!upload.module/function/theme_upload_attachments/6'),
      '!itweak_link' => l('iTweak Upload', 'http://drupal.org/project/itweak_upload'),
    )),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
file_force_settings Form builder; Configure File Force settings.