function favicon_settings_form in Favicon 7.2
Form callback; favicon module settings form.
1 string reference to 'favicon_settings_form'
- favicon_menu in ./
favicon.module - Implements hook_menu().
File
- ./
favicon.admin.inc, line 6
Code
function favicon_settings_form($form) {
$form['favicon_delivery_callback'] = array(
'#type' => 'radios',
'#title' => t('How to transfer the favicon file'),
'#options' => array(
'DrupalFavicon::deliverFileTransfer' => t('Inline (will store the output in page cache if enabled or file is smaller than @size)', array(
'@size' => format_size(variable_get('favicon_page_cache_maximum_size', DRUPAL_KILOBYTE * DRUPAL_KILOBYTE)),
)),
'DrupalFavicon::deliverFileRedirect' => t('Redirect'),
),
'#default_value' => variable_get('favicon_delivery_callback', 'DrupalFavicon::deliverFileTransfer'),
);
if (module_exists('redirect')) {
$form['favicon_delivery_callback']['#options']['DrupalFavicon::deliverFileRedirect'] .= ' ' . t('(using Redirect module)');
}
$form['#submit'][] = 'favicon_settings_form_submit';
return system_settings_form($form);
}