/[drupal]/contributions/modules/advuser/advuser.module
ViewVC logotype

Diff of /contributions/modules/advuser/advuser.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.14.2.7.2.1, Thu May 7 19:15:55 2009 UTC revision 1.14.2.7.2.2, Tue Jun 23 15:30:25 2009 UTC
# Line 5  Line 5 
5   * filtering and apply actions to block, unblock, delete or email the selected   * filtering and apply actions to block, unblock, delete or email the selected
6   * users.   * users.
7   *   *
8   * $Id: advuser.module,v 1.14.2.8 2009/05/07 17:33:37 earnie Exp $   * $Id: advuser.module,v 1.14.2.7.2.1 2009/05/07 19:15:55 earnie Exp $
9   **/   **/
10    
11  /**  /**
# Line 132  function advuser_admin_account() { Line 132  function advuser_admin_account() {
132    
133    $destination = drupal_get_destination();    $destination = drupal_get_destination();
134    
135      list($junk, $go) = split('=', $destination);
136      $form['destination'] = array('#type' => 'value', '#value' => urldecode($go));
137    
138    $status = array(t('blocked'), t('active'));    $status = array(t('blocked'), t('active'));
139    $roles = advuser_user_roles();    $roles = advuser_user_roles();
140    
# Line 269  function advuser_admin_account_submit($f Line 272  function advuser_admin_account_submit($f
272    $operations = module_invoke_all('user_operations', $form_state);    $operations = module_invoke_all('user_operations', $form_state);
273    $operations = array_merge($operations,module_invoke_all('advuser_operations'));    $operations = array_merge($operations,module_invoke_all('advuser_operations'));
274    $operation = $operations[$form_state['values']['operation']];    $operation = $operations[$form_state['values']['operation']];
275      $destination = $form_state['values']['destination'];
276    // Filter out unchecked accounts.    // Filter out unchecked accounts.
277    $accounts = array_filter($form_state['values']['accounts']);    $accounts = array_filter($form_state['values']['accounts']);
278    if ($function = $operation['callback']) {    if ($function = $operation['callback']) {
# Line 283  function advuser_admin_account_submit($f Line 287  function advuser_admin_account_submit($f
287    
288      cache_clear_all('*', 'cache_menu', TRUE);      cache_clear_all('*', 'cache_menu', TRUE);
289      drupal_set_message(t('The update has been performed.'));      drupal_set_message(t('The update has been performed.'));
290        extract(parse_url($destination));
291        drupal_goto($path, $query);
292    }    }
293  }  }
294    

Legend:
Removed from v.1.14.2.7.2.1  
changed lines
  Added in v.1.14.2.7.2.2

  ViewVC Help
Powered by ViewVC 1.1.2