function facebook_album_block_configure in Facebook Album 7.3
Implements hook_block_configure().
File
- ./
facebook_album.module, line 127
Code
function facebook_album_block_configure($delta = '') {
if (strpos($delta, 'facebook_album_') !== FALSE) {
$settings = facebook_album_get_settings($delta);
$form['fba_settings'] = [
'#title' => t('Facebook Album Settings'),
'#type' => 'fieldset',
'#collapsible' => FALSE,
'#tree' => TRUE,
];
$form['fba_settings']['facebook_album_pageID'] = [
'#type' => 'textfield',
'#title' => t('Facebook Page ID'),
'#default_value' => $settings['pageID'],
'#description' => t('The page ID of the page you want to pull the albums from. For example, if your page is https://facebook.com/acromediainc, you would enter acromediainc.'),
];
$form['fba_settings']['facebook_album_visibility'] = [
'#type' => 'radios',
'#title' => t('Album Visibility'),
'#options' => [
0 => t('Exclude the listed albums'),
1 => t('Only show the specified albums'),
],
'#default_value' => $settings['visibility'],
];
$form['fba_settings']['facebook_album_albums'] = [
'#type' => 'textarea',
'#description' => t('Leave blank to show all albums. Specify albums by using their album IDs. Enter one ID per line.'),
'#default_value' => $settings['albums'],
];
$form['fba_settings']['display_settings'] = [
'#title' => t('Album Display Settings'),
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
];
$form['fba_settings']['display_settings']['facebook_album_albumLimit'] = [
'#title' => t('Album Limit'),
'#type' => 'textfield',
'#default_value' => $settings['albumLimit'],
'#description' => t('Leave blank or set to 0 if you want to load all albums'),
];
$form['fba_settings']['display_settings']['facebook_album_showDescription'] = [
'#title' => t('Show Album Description'),
'#type' => 'checkbox',
'#default_value' => $settings['showDescription'],
];
$form['fba_settings']['display_settings']['facebook_album_showLocation'] = [
'#title' => t('Show Album Location'),
'#type' => 'checkbox',
'#default_value' => $settings['showLocation'],
];
$form['fba_settings']['display_settings']['facebook_album_albumThumbWidth'] = [
'#title' => t('Album Thumbnail Width'),
'#type' => 'textfield',
'#default_value' => $settings['albumThumbWidth'],
];
$form['fba_settings']['display_settings']['facebook_album_albumThumbHeight'] = [
'#title' => t('Album Thumbnail Height'),
'#type' => 'textfield',
'#default_value' => $settings['albumThumbHeight'],
];
$form['fba_settings']['display_settings']['facebook_album_photoThumbWidth'] = [
'#title' => t('Photo Thumbnail Width'),
'#type' => 'textfield',
'#default_value' => $settings['photoThumbWidth'],
];
$form['fba_settings']['display_settings']['facebook_album_photoThumbHeight'] = [
'#title' => t('Photo Thumbnail Height'),
'#type' => 'textfield',
'#default_value' => $settings['photoThumbHeight'],
];
$form['fba_settings']['display_settings']['colorbox'] = [
'#title' => t('Colorbox Settings'),
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t('Facebook Albums support displaying images in Colorbox if it is enabled.'),
];
$form['fba_settings']['display_settings']['colorbox']['facebook_album_colorboxOptions'] = [
'#title' => t('Colorbox Options'),
'#type' => 'textarea',
'#default_value' => $settings['colorbox'],
'#description' => t('Specify any additional Colorbox options here. i.e. "transition:\'elastic\', speed:350"'),
];
return $form;
}
}