function cdn_admin_basic_settings_form in CDN 6
Form definition; basic settings.
1 string reference to 'cdn_admin_basic_settings_form'
- cdn_menu in ./
cdn.module - Implementation of hook_menu().
File
- ./
cdn.admin.inc, line 74 - Settings administration UI.
Code
function cdn_admin_basic_settings_form() {
$form[CDN_BASIC_URL_VARIABLE] = array(
'#type' => 'textfield',
'#title' => t('CDN URL'),
'#description' => t("The CDN URL prefix that should be used. Only works\n for CDNs that support Origin Pull.<br />\n <strong>WARNING</strong>: do not use subdirectories\n when you're serving CSS files from the CDN. The\n references to images and fonts from within the CSS\n files will break because the URLs are no longer\n valid."),
'#size' => 35,
'#default_value' => variable_get(CDN_BASIC_URL_VARIABLE, ''),
);
$form[CDN_BASIC_EXTENSIONS_VARIABLE] = array(
'#type' => 'textfield',
'#title' => t('Allowed extensions'),
'#description' => t('Only files with these extensions will be synced.'),
'#default_value' => variable_get(CDN_BASIC_EXTENSIONS_VARIABLE, CDN_BASIC_EXTENSIONS_DEFAULT),
);
return system_settings_form($form);
}