Would be most helpful to provide a working example for documentation. There are issues with the blog post at http://treehouseagency.com/blog/neil-hastings/2011/09/21/building-custom... - you can see the comments section of that post for exact details.
A simpler "example plugin" has been proposed and is living here: https://gist.github.com/1460818

First, there is this line from the .inc file in both examples:

$content['nodes'] = node_load_multiple(array_keys($result['node']));

This results in a php error on common.inc
[12-Dec-2011 09:50:29] PHP Fatal error: Cannot use object of type stdClass as array in /includes/common.inc on line 5598
This appears to be an issue with storing node objects within the $content array.

Another issue with documentation - no information on how to handle or preprocess on the theme level.

See: https://gist.github.com/1463915 (this is just the "More Link" portion on a bean plugin called more_beans) - I am using this to see if I can at least get the form text fields to make it through to theme level.

It appears that, while bean.tpl.php is working for custom beans created through the api, plugin beans like the one in the documentation do not parse through to the theme level.

A print of the $content variable on the theme level is giving some interesting results from the plugin bean.

    print '<pre>';
    print_r($content);
    print '</pre>';
    print render($content);

The result is empty.
Array ( )

This print statement pumps out a pretty large array when viewing a custom bean created through the bean api module.

Comments

saltednut’s picture

Issue summary: View changes

Some clarification.

saltednut’s picture

Title: Example Documentation Needs Revisions to show a working example » Example Plugin Module Needed for Documentation
Assigned: Unassigned » saltednut
Category: support » task

Thanks for the help on IRC/gist, indytechcook.

The plugin is a 5 most recent articles listing along with a user defined "more" link that sits at the bottom of the block.

Bean Example Plugin Sandbox: http://drupal.org/sandbox/brantwynn/1369224

To Do: write documentation for coding bean plugin modules.

indytechcook’s picture

Awesome. Go ahead and add any documentation as patches to either bean.api.php or the readme.

indytechcook’s picture

Status: Active » Fixed

I've added several links to the home page. I'll also added them to the read me http://drupal.org/commitlog/commit/22232/02b1851365072de529746e2fb23f22d...

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

removed unnecessary array dump