As we discussed earlier, I stitched together a quick hook that allows external modules to define their own include directories. It does it per plugin type, which will mean developers can mirror the panels include directory structure OR just lump them all into one directory. Their choice.

CommentFileSizeAuthor
plugins.inc_.patch2.84 KBsdboyer

Comments

sdboyer’s picture

Status: Needs review » Closed (fixed)

Patch has been committed. As of beta3, hook_panels_layout_directory will be available for implementation by other modules wishing to extend panels through their own *.inc files.

sdboyer’s picture

Status: Closed (fixed) » Needs work

The hook, as implemented in the above patch, does not garner all the necessary information. Reopening the issue to indicate that further work needs to be done.

sdboyer’s picture

Status: Needs work » Fixed

Code has been fixed up; hook now appropriately remembers module name so that the correct module prefix can be called. Procedures are also in place to handle circumstances where either a) the module invokes the hook without returning anything, or b) the module invokes the hook but returns a subdirectory that does not contain the relevant data.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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