In the current implementation the API hook is called like hook_ctools_plugin_api($owner, $hook), but the alter hook does not provide that additional information (hook_ctools_plugin_api_alter(&$info)), so it is impossible to distinguish different owners or hooks in the alter implementation, although this was possible in the definition hook. This way you cannot alter any module's implementation, that implements multiple CTools based APIs.

I'll post a patch in the next comment.

Comments

derhasi’s picture

Status: Needs review » Active
StatusFileSize
new440 bytes

And there is the patch for adding $owner and $hook:

hook_ctools_plugin_api_alter(&$info) => hook_ctools_plugin_api_alter(&$info, $owner, $hook)

derhasi’s picture

Issue summary: View changes

Updated issue summary.

derhasi’s picture

Status: Active » Needs review
derhasi’s picture

Issue summary: View changes

Updated issue summary.

Status: Active » Needs review

torotil’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

This is severely needed. Without that information the alter-hook is useless.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, fixed.

derhasi’s picture

The commit reference is missing, due to a wrong commit message and attribution. It was really committed in https://www.drupal.org/commitlog/commit/8124/c651ea7d1f46cae26791c9c5cac...

So it's part of the latest stable release 7.x-1.7.

Status: Fixed » Closed (fixed)

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