function photos_admin_settings_submit in Album Photos 7.3
Same name and namespace in other branches
- 6.2 inc/photos.admin.inc \photos_admin_settings_submit()
Submit handler for admin form.
1 string reference to 'photos_admin_settings_submit'
- photos_admin_settings in inc/
photos.admin.inc - @file Admin settings form(s) and submit handler.
File
- inc/
photos.admin.inc, line 451 - Admin settings form(s) and submit handler.
Code
function photos_admin_settings_submit($form, &$form_state) {
global $user;
$size = array();
for ($i = 0; $i < $form_state['values']['photos_thumb_count']; $i++) {
if ($form_state['values']['photos_size_' . $i]) {
$size[] = array(
'style' => $form_state['values']['photos_size_' . $i],
'name' => isset($form_state['values']['photos_name_' . $i]) ? $form_state['values']['photos_name_' . $i] : '',
);
}
}
variable_set('photos_size', $size);
// Clear menu cache.
cache_clear_all('*', 'cache_menu', TRUE);
}