The documentation states that in order to get a handle on the Advanced Formatter to:

1. Install and enable the Devel module and the Devel generate sub-module.
2. Create a new formatter containing the following code:
dpm($element);
3. Hit the Preview button.

I misread that and turned on "Devel Generate" without enabling the "Devel" module (which is allowed since Devel Generate apparently doesn't require "Devel"). After creating the new formatter with the dpm($element); string and hitting 'Preview' I received an alert about a HTTP 500 error. If you save the formatter and then try to put it in place it will cause a white screen of death.

Ideally, the module could check to make sure that Devel is enabled (along with Devel Generate).

Regardless of that, updating the Documentation with a warning to make sure both parts of the Devel module are enabled might save other folks some grief.

CommentFileSizeAuthor
#1 custom_formatters.888596_01.patch77.75 KBsgabe

Comments

sgabe’s picture

Version: 6.x-1.4 » 6.x-1.x-dev
Component: Documentation » Code
Status: Active » Needs review
StatusFileSize
new77.75 KB

There is something odd with the custom_formatters.admin.inc file, I cannot create a patch which doesn't contain the whole stuff just the change... However it seems to apply just fine so here it is. As I see the documentation part is covered, since the help says that you have to enable both Devel and Devel Generate.

deciphered’s picture

Status: Needs review » Closed (works as designed)

Hi sgabe,

The problem is the dpm(), preview works fine without the Devel module enable, the error you are getting is due to the use of the dpm() function which requires the Devel module.

Cheers,
Deciphered.