function xmlsitemap_user_admin_role_submit in XML sitemap 6
Form submit function.
1 string reference to 'xmlsitemap_user_admin_role_submit'
- xmlsitemap_user_form_user_admin_role_alter in xmlsitemap_user/
xmlsitemap_user.module - Implementation of hook_form_FORM_ID_alter().
File
- xmlsitemap_user/
xmlsitemap_user.module, line 322 - Adds user profiles to the sitemap.
Code
function xmlsitemap_user_admin_role_submit($form, &$form_state) {
$form_values = $form_state['values'];
$priority = db_result(db_query("SELECT priority FROM {xmlsitemap_user_role} WHERE rid = %d", $form_values['rid']));
$row = new stdClass();
$row->rid = $form_values['rid'];
$row->priority = $form_values['xmlsitemap_user_role_priority'];
drupal_write_record('xmlsitemap_user_role', $row, $priority !== FALSE ? 'rid' : NULL);
xmlsitemap_flag_sitemap();
}