You are here

function drupagram_user_make_global_submit in Drupagram 7

@todo Please document this function.

See also

http://drupal.org/node/1354

File

./drupagram.pages.inc, line 238
Drupagram admin page callaback functions.

Code

function drupagram_user_make_global_submit($form, &$form_state) {
  db_update('drupagram_account')
    ->expression('is_global', '(1 - is_global)')
    ->condition('drupagram_id', $form_state['values']['drupagram_id'])
    ->execute();
  $form_state['redirect'] = 'user/' . $form_state['values']['uid'] . '/edit/drupagram';
}