There is a typo, and module name is wrong:

function references_dialog_views_api() {
  return array(
    'api' => 3,
    'path' => drupal_get_path('module', 'references_dialog') . '/views',
  );
}

It cause related problems with views.

Patch applied.

CommentFileSizeAuthor
views-api-module-name-typo.patch458 bytesIRuslan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nbucknor’s picture

This patch works for me.

heliogabal’s picture

patch is working for me too, and there is a similar issue that is investigating two other cases of naming: https://www.drupal.org/node/2375741

hosef’s picture

Title: Wrong hook_views_api() implementation() » Fix misspelled project name in call to drupal_get_path()
Status: Needs review » Reviewed & tested by the community

The performance issue actually has nothing to do with views. The problem is that the module is asking Drupal for the path to a project that doesn't actually exist, which causes Drupal to look in every folder that could possibly have the .module for this non-existant project.

The patch does indeed fix the issue.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, views-api-module-name-typo.patch, failed testing.

hosef’s picture

Oh, it appears that this is already fixed in the latest development build.

I'm not going to mark as fixed, though because there is no recommended build that includes this.

Kristen Pol’s picture

Status: Needs work » Reviewed & tested by the community

Marking RTBC since it works but it is understood this has already been fixed in dev.

IRuslan’s picture

Status: Reviewed & tested by the community » Closed (fixed)