function gallery_assist_settings_info in Gallery Assist 6
1 call to gallery_assist_settings_info()
- gallery_assist_settings in ./
gallery_assist.admin.inc - Settings form.
File
- ./
gallery_assist.admin.inc, line 626 - Administration page from Gallery Assist.
Code
function gallery_assist_settings_info($type, $settings) {
$content = array();
$content['links'] = array(
'#type' => 'fieldset',
);
$content['links'] = array(
'#type' => 'fieldset',
);
$names = array(
'upload_thm' => t('Thumbnail upload size'),
'upload_prev' => t('Preview upload sizev'),
'items_per_row' => t('Items per row'),
't_items_per_row' => t('Thumbnails per row for the teaser'),
'rows_per_page' => t('Rows per page'),
'thumbnail_size' => t('Thumbnail size'),
'thumbnail_size_plus' => t('Thumbnail size plus'),
'preview_size' => t('Preview size'),
'item_margin' => t('Item margin'),
'item_padding' => t('Item padding'),
'show_in_homepage_block' => t('Show in block'),
'item_border' => t('Item border'),
'item_border_color' => t('Item border color'),
'show_backlink' => t('Show backlink'),
'show_toggle' => t('Show toggle'),
'position_toggle' => t('Position toggle'),
'title_substr' => t('Title substr'),
'pager_symbol' => t('Pager symbol'),
'pager_layout' => t('Pager layout'),
'pager_position' => t('Pager position'),
'pager_visibles' => t('Pager visibles'),
'show_title' => t('Show title'),
'show_layout' => t('Show layout'),
'force_image_height' => t('Force image height'),
'ga_align' => t('Gallery container align setting in the teaser view'),
'gap_align' => t('Gallery container align setting in the page view'),
't_ga_float' => t('Gallery container float setting in the teaser view'),
'p_ga_float' => t('Gallery container float setting in the page view'),
'shadow' => t('Shadow'),
'hide_in_teaser' => t('Hide Gallery container in the teaser view'),
'show_download_link' => t('Show download link'),
'item_effect' => t('Item effect'),
'max_items' => t('Maximal items per gallery'),
'max_form_items' => t('Maximal Items in the form'),
'validate_upload' => t('Validate upload'),
'file_size' => t('Allowed maximale file size'),
'user_size' => t('Allowed maximale memory size from the user'),
'resolution' => t('Resolution restriction'),
'extensions' => t('Allowed file extensions'),
'public_status' => t('Public status'),
'admin_public_status' => t('Admin public status'),
'pager_t_height' => t('Pager thumbnail height'),
'pager_t_active_height' => t('Pager thumbnail height active'),
'extra_layout_settings_allowed' => t('Allow users to overwrite the layout settings'),
'common_settings_allowed' => t('Allow users to overwrite the common settings'),
'hide_teaser_container_allowed' => t('Allow users to overwrite the hide teaser setting'),
'display_download_link_allowed' => t('Allow users to overwrite the display download link setting'),
'container_format_allowed' => t('Allow users to overwrite the container format setting'),
'gallery_container_weight_allowed' => t('Allow users to overwrite the gallery container weight setting'),
'show_in_homepage_block_allowed' => t('Allow users to overwrite the show_in_homepage_block setting'),
'gallery_public_status_allowed' => t('Allow users to overwrite the gallery_public_status setting'),
'show_titles_allowed' => t('Allow users to overwrite the show_titles setting'),
'show_in_userprofile_allowed' => t('Allow users to overwrite the show_in_userprofile setting'),
'gallery_items_shadow_allowed' => t('Allow users to overwrite the gallery_items_shadow setting'),
'ga_db_order_field' => t('DB-Order field'),
'ga_db_order' => t('Order'),
'use_imagecache' => t('Imagecache as preset builder'),
'thm_presetname' => t('Thumbnail preset name'),
'prev_presetname' => t('Preview preset name'),
'thm_presetid' => t('Thumbnail preset id'),
'prev_presetid' => t('Preview preset id'),
'gallery_call_type' => 'Gallery call type',
'ga_public_status' => t('Public status'),
'pager_presetid' => t('Pager preset id'),
'pager_presetname' => t('Pager preset name'),
'pager_format' => t('Pager format'),
'ga_item_title_type' => t('Item titles type'),
'graphlinks' => t('Use graphic links'),
'in_profile' => t('Show gallery in the user profile view'),
'disable_margin_top' => t('Disable the margin-top css format'),
'gallery_assist_weight' => t('Gallery container weight'),
);
foreach ($settings as $k => $v) {
// if ($k == 'layout') {
// foreach ($settings['layout'] as $lk => $lv) {
// if (empty($names[$lk])) {
// $names[$lk] = $k;
// }
// $content[$lk] = array(
// '#value' => '<div><em>'. $names[$lk] .'</em>: <strong>'. $lv .'</strong></div>',
// );
// }
// }
// elseif ($k == 'validate_upload') {
// foreach ($settings['validate_upload'] as $vk => $vv) {
// if (empty($names[$vk])) {
// $names[$vk] = $vk;
// }
// $content[$vk] = array(
// '#value' => '<div><em>'. $names[$vk] .'</em>: <strong>'. $vv .'</strong></div>',
// );
// }
// }
// else {
if (empty($names[$k])) {
$names[$k] = $k;
}
$content[$k] = array(
'#value' => '<div><em>' . $names[$k] . '</em>: <strong>' . $v . '</strong></div>',
);
// }
}
return $content;
}