| 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 |
/** |
/** |
| 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 |
|
|
| 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']) { |
| 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 |
|
|