Attached patch introduces following changes:

  • added VBO into the CRM Contacts views with only one default action "Delete Contact"
  • added one more filter by Contact name
  • overriding column with contact name to be "Contact Name" in any time
  • views dependency moved from crm_core_contact to crm_core_contact_ui
  • added new dependency on views_bulk_operations module

Also I have implemented additional rules action for CRM Contacts VBO with some UI improvements. Here is his sandbox: http://drupal.org/sandbox/BerdArt/1541714

Comments

berdyshev’s picture

I have updated this patch and removed from views default configuration the handler description for CRM Core Email Contact additional VBO operation. This configuration will be imported now by the module.

dealancer’s picture

Status: Needs review » Needs work

Thanks for a patch.

> views dependency moved from crm_core_contact to crm_core_contact_ui

We do need this dependency in both modules. See crm_core_cotnact/includes/views

+++ b/modules/crm_core_contact_ui/views/crm_core_contact_ui.views_default.incundefined
@@ -10,211 +10,325 @@
+  /* Filter criterion: CRM Contact: Household name (contact_name:credentials) */
+  $handler->display->display_options['filters']['contact_name_credentials']['id'] = 'contact_name_credentials';
+  $handler->display->display_options['filters']['contact_name_credentials']['table'] = 'field_data_contact_name';
+  $handler->display->display_options['filters']['contact_name_credentials']['field'] = 'contact_name_credentials';
+  $handler->display->display_options['filters']['contact_name_credentials']['operator'] = 'contains';
+  $handler->display->display_options['filters']['contact_name_credentials']['group'] = 1;
+  $handler->display->display_options['filters']['contact_name_credentials']['exposed'] = TRUE;
+  $handler->display->display_options['filters']['contact_name_credentials']['expose']['operator_id'] = 'contact_name_credentials_op';
+  $handler->display->display_options['filters']['contact_name_credentials']['expose']['label'] = 'Title contains';
+  $handler->display->display_options['filters']['contact_name_credentials']['expose']['operator'] = 'contact_name_credentials_op';
+  $handler->display->display_options['filters']['contact_name_credentials']['expose']['identifier'] = 'contact_name_credentials';
+  $handler->display->display_options['filters']['contact_name_credentials']['expose']['required'] = 0;

Looks like it is a wrong filter. You should use fullname filter, that was committed to the name module in the issue #1369618: Fullname filter for views. Hurrah! Recent Name Field module release has this patch!

What is the innderdiff.txt file for?

Anonymous’s picture

Status: Needs work » Postponed

These enhancements are useful, but we are not going to implement them by default. Happy to include them as options someone can turn on within their contact form.

The Contact UI is meant to be provided without any options - i.e. a username with a link to a contact, plus some operations fields. Site builders and administrators can configure it any way they want.

Anonymous’s picture

Issue summary: View changes
Status: Postponed » Closed (works as designed)