Module allows export arbitrary block as a HTML widget that could be embedded to a 3-rd party site.

That widget contains only HTML of the block. If block requires CSS or Javascript - they should be handled separately.

Widget could be embedded directly on the other site page using iframe (easiest option) or by making cURL request and then outputting on other site.

For each block export could be enabled/disabled and export format could be configured.

Project page: https://www.drupal.org/sandbox/eugef/2350637
Git clone: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/eugef/2350637.git block_export_widget

Reviews of other projects:
https://www.drupal.org/node/2370973#comment-9496679
https://www.drupal.org/node/2376001#comment-9496689
https://www.drupal.org/node/2394329#comment-9496753

Comments

Eugene Fidelin’s picture

Issue summary: View changes
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxeugef2350637git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

Eugene Fidelin’s picture

Status: Needs work » Needs review

All the errors reported by review tool are fixed http://pareview.sh/pareview/httpgitdrupalorgsandboxeugef2350637git-0

anthonylindsay’s picture

Status: Needs review » Needs work

Whilst manually reviewing your code in the repository viewer, I came across the following:

  • Line 75 - "Returns list of blocks that could not be exported." I'm not sure that this makes sense in this context. It sounds like some sort of error reporting, rather than where a user chose not to allow the export of certain blocks. It would be better worded "Returns list of blocks which have been excluded from export."

Otherwise I think the code looks good. Module installs cleanly and admin interface is simple. Export works. Pity that it can not do CSS/JS, but maybe that can be a feature request for the 2.0 version!

So really the only thing is clearing up that comment on line 75.

klausi’s picture

Status: Needs work » Needs review

That comment is surely not an application blocker, any other issues you found or should this be rtbc instead?

Eugene Fidelin’s picture

Hi anthonylindsay, thank you for your review.

I've changed comment to make it more clear. I've also added a CSS/JS export as a plan for the next release.

anthonylindsay’s picture

Status: Needs review » Reviewed & tested by the community

Looks good so.

marc.veldman’s picture

Tried it on one of my sites. Installs cleanly and works just fine.

LuCarD’s picture

Looks good.....

Eugene Fidelin’s picture

Priority: Normal » Critical
Eugene Fidelin’s picture

What else should i do to make a full project out of "Block export widget"?

Eugene Fidelin’s picture

Any chance to make a full project?

klausi’s picture

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

Eugene Fidelin’s picture

Ok, got it, thanks for the quick reply

Eugene Fidelin’s picture

Issue summary: View changes
Eugene Fidelin’s picture

Issue summary: View changes
Eugene Fidelin’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
klausi’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Fixed

Review of the 7.x-1.x branch (commit c5f8788):

  • Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
    FILE: /home/klausi/pareview_temp/block_export_widget.admin.inc
    ---------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------
     20 | ERROR | Separate the @ingroup and @see sections by a blank line.
    ---------------------------------------------------------------------------
    
  • No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.

This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.

manual review:

  1. "drupal_alter('block_export_widget_excluded_blocks', $excluded_blocks);": Hooks that are provided by a module should be documented in MODULENAME.api.php, see http://drupal.org/node/161085#api_php . Also elsewhere for the other drupal_alter() and module_invoke_all() calls.
  2. Your whole config is in one variable which is loaded into memory on every single page request. If there are many exports this could have a negative performance impact. Not sure how realistic that problem is, your own DB table would be a solution in this case.
  3. block_export_widget_admin_configure_form_submit(): do not document $form and $form_state here, see https://www.drupal.org/coding-standards/docs#forms

But that are not application blockers, so ...

Thanks for your contribution, Eugene!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Eugene Fidelin’s picture

Hello Klausi,

Thank you for your useful feedback and of course for updating my account!

Status: Fixed » Closed (fixed)

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