Latest (Feb '11) download, though the problem was the same on Dec version.

- Created a new User view
- Filter: User: active <> active (blocked)
- Fields: User: name, User: email and a delete link.

Two issues:
1. There is a record displayed for uid 0, but there is no User: ID filter with which to filter it out unless I'm just not seeing it.
2. The delete link for a given user reads as user/uid/delete?destination=path/to/view but when clicked (a) goes to the user's profile and (b) does not delete the user - I'm logged in as user 1.

CommentFileSizeAuthor
#2 1057810_2.patch525 bytesmariusz.slonina
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

For 1)


$view = new view;
$view->name = 'foo';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->human_name = 'foo';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Filter: User: Name */
$handler->display->display_options['filters']['uid']['id'] = 'uid';
$handler->display->display_options['filters']['uid']['table'] = 'users';
$handler->display->display_options['filters']['uid']['field'] = 'uid';
$handler->display->display_options['filters']['uid']['value'] = array(
  0 => 0,
);
$translatables['foo'] = array(
  t('Defaults'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort By'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
);

There is one.

2) Drupal7 just has the user cancel link. We should remove the user delete link from views, too.

Please feel free to create a patch.

mariusz.slonina’s picture

Status: Active » Needs review
FileSize
525 bytes

Is it just a matter of deleting views_handler_field_user_link_delete.inc and applying this patch?

dawehner’s picture

Status: Needs review » Fixed

Thanks. Commited to 7.x

Jackinloadup’s picture

patch also needs to remove this line

views.info +170

files[] = modules/user/views_handler_field_user_link_delete.inc

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.