'fieldset',
'#collapsible' => TRUE,
'#collapsed' => isset($fb_app->label),
'#title' => t('Facebook profile tabs'),
'#description' => t('Settings which apply to profile tabs.',
array('!url' => 'http://developers.facebook.com/docs/guides/canvas/#tabs')),
);
// Override themes
$themes = system_theme_data();
ksort($themes);
$theme_options[0] = t('System default');
foreach ($themes as $theme) {
if ($theme->status) { // Only enabled themes.
$theme_options[$theme->name] = $theme->name;
}
}
$form['fb_app_data']['fb_tab']['custom_theme'] = array(
'#type' => 'select',
'#title' => t('Theme for profile tabs'),
'#description' => t('Choose a theme designed to return FBML specifically for the 520 pixel wide space allocated to tabs.
Note that if your tab path is a menu callback which returns FBML, this setting is ignored.'),
'#options' => $theme_options,
'#required' => TRUE,
'#default_value' => $config['custom_theme'],
);
// Properties: http://developers.facebook.com/docs/appproperties
$form['fb_app_data']['fb_tab']['tab_default_name'] = array(
'#type' => 'textfield',
'#title' => 'Tab name',
'#default_value' => $config['tab_default_name'],
'#description' => t('A very short title.'),
);
$form['fb_app_data']['fb_tab']['profile_tab_url'] = array(
'#type' => 'textfield',
'#title' => 'Path',
'#default_value' => $config['profile_tab_url'],
'#description' => t('Recommended value is %tab_path. You may choose another if you have defined a custom menu item or view.', array('%tab_path' => FB_TAB_PATH_VIEW)),
);
/* XXX is this used by facebook?
$form['fb_app_data']['fb_tab']['edit_url'] = array(
'#type' => 'textfield',
'#title' => 'Edit URL',
'#default_value' => $config['edit_url'],
'#description' => t('Recommended value is %edit_url.', array(
'%edit_url' => url(FB_TAB_PATH_FORM, array('absolute'=> TRUE)))),
);
$form['fb_app_data']['fb_tab']['edit_url']['#description'] .= '
' . t('Note that this field is apparently unused by facebook.');
*/
}
}