The export UI documentation at /help/export-ui.html gives this as an example:

   'handler' => array(
     'class' => 'ctools_export_ui_example',
     'parent' => 'ctools_export_ui',
   ),

I can't find anywhere in the ctools code where ['handler']['parent'] is used. Also, removing the parent from my plugin definition (Export UI) does not break anything, so I'm wondering if it's old cruft and could be removed from plugin definition.

CommentFileSizeAuthor
#2 1985264_2_ctools_parent.patch303 bytesscor

Comments

merlinofchaos’s picture

That is old cruft and was needed in D6 where Drupal did not have a class registry for autoload. You are correct that it can be removed.

scor’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new303 bytes

ok, I've rolled a patch for D7. Are there other places where this is documented and where we need to fix this?

scor’s picture

Title: Is plugin handler parent used anywhere? » Update D7 documentation: plugin handler parent is no longer used

chris matthews’s picture

Issue summary: View changes

The 6 year old patch in #2 to export-ui.html still applies cleanly to the latest ctools 7.x-1.x-dev, but still needs to be officially reviewed and tested by the community.

Applied patch help/export-ui.html cleanly.

mustanggb’s picture

Category: Support request » Task
japerry’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.