function fb_autopost_global_settings_submit in Facebook Autopost 7
Submit callback for fb_autopost_global_settings.
1 string reference to 'fb_autopost_global_settings_submit'
- fb_autopost_global_settings in ./
fb_autopost.admin.inc - FAPI system admin form.
File
- ./
fb_autopost.admin.inc, line 107 - Admin forms.
Code
function fb_autopost_global_settings_submit($form, &$form_state) {
if (isset($form_state['values']['fb_autopost_page'])) {
$pages = array_values(array_filter($form_state['values']['fb_autopost_page']));
$at = $form_state['values']['fb_autopost_pages_access_tokens'];
$form_state['values']['fb_autopost_pages_access_tokens'] = array();
foreach ($pages as $page_id) {
$form_state['values']['fb_autopost_pages_access_tokens'][$page_id] = $at[$page_id];
}
}
}