function fb_canvas_admin_settings in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 fb_canvas.admin.inc \fb_canvas_admin_settings()
- 7.3 fb_canvas.admin.inc \fb_canvas_admin_settings()
Form builder; Configure settings for this site.
See also
1 string reference to 'fb_canvas_admin_settings'
- fb_canvas_menu in ./
fb_canvas.module - Implementation of hook_menu().
File
- ./
fb_canvas.admin.inc, line 51 - Admin pages and forms for canvas apps.
Code
function fb_canvas_admin_settings() {
$form['process_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Canvas page URL processing'),
'#description' => t('This option alters links, so that instead of changing the iframe\'s URL, they change the top frame, to something starting <em>apps.facebook.com/APP/...</em> This adds some overhead to each canvas page served. Still, most sites will want this enabled.'),
);
$form['process_settings'][FB_CANVAS_VAR_PROCESS_IFRAME] = array(
'#type' => 'checkbox',
'#title' => t('Enable on iframe canvas pages.'),
'#default_value' => variable_get(FB_CANVAS_VAR_PROCESS_IFRAME, TRUE),
'#description' => t('If unchecked, settings below have no effect.'),
);
$form['process_settings'][FB_CANVAS_VAR_PROCESS_ABSOLUTE] = array(
'#type' => 'checkbox',
'#title' => t('Replace absolute hrefs, not just relative, with canvas page URLs.'),
'#default_value' => variable_get(FB_CANVAS_VAR_PROCESS_ABSOLUTE, TRUE),
);
return system_settings_form($form);
}