Is this module still relevant in Drupal 7, or is there a way to achieve the same thing natively?

If there's still a need for it in D7, are there plans to upgrade this module?

Files: 
CommentFileSizeAuthor
#13 d7_port-1021012-13.patch5.72 KBjdwfly
#13 insert_block_d7.zip4.84 KBjdwfly

Comments

mlsamuelson’s picture

Title: Drupal 7 » Upgrade to Drupal 7

Great question, JayKayAu. I haven't done an assessment, and because I don't have any sites using Insert Block, it wasn't high up on my list, but my hunch is it's still relevant, and it should be a pretty easy upgrade.

That said, I'll probably wait until I hear from folks that they want it upgraded before I do the work...

I take it, that's a vote from you?

JayKayAu’s picture

Hehe, yes it is :)

If the upgrade isn't too arduous, then it probably would be a good module to add to the D7 collection. We use it in a couple of sites that we may want to move over to D7 at some point in the future.

I'm happy to test it out and give whatever feedback I can.

linksync’s picture

A D7 port would be much appreciated. We use your fine module in around 20 sites that we'll be migrating soon. We want to start building new sites with D7 and have identified your module as a must have.

alfbrand’s picture

I second a port of this module to D7 - I find it very handy.

NancyDru’s picture

I had never heard of this module until just now, but have needed to do this several times and always did some hokey theme changes.

mlsamuelson’s picture

Ugh, I haven't carved out a niche of time yet to get the D7 upgrade done (partly out of waiting for the Git migration to be complete, then coming down with a nasty case of flu). I'm hoping to get to this soon. If anyone's project is held up waiting for this module, please ping me.

Sometimes a dude just needs a fire lit under him. ;)

TripX’s picture

sub

fuzzy76’s picture

subscribing

NancyDru’s picture

Title: Upgrade to Drupal 7 » Insert Block for D7

Changing title - all modules end up with the same title.

giraldo’s picture

subscribing

mlsamuelson’s picture

Just an update here.

Had a couple illnesses and emergencies these last few weeks, and now catching up with work, so the Insert Block update has been pushed out a few more weeks on my list. Sorry for anyone who's been waiting.

Patches are of course welcome. If you can't wait, and you're familiar with Drupal's filter system hooks, you know most of what you'd need to do this update. In a few weeks, though, I'll give it a whack.

NancyDru’s picture

Family is most important; take care of them (and yourself) first. I found a way around this.

jdwfly’s picture

I've attached a patch and also a zip file of the working drupal 7 version. I had to have this working today for a project. Everything seems to be working fine for me.

jshimota01’s picture

subscribing. I use this module on 2 sites.

jdwfly’s picture

Category: bug » task
Status: Active » Needs review

I notified the module maintainer about this so hopefully he will be able to review and commit something soon.

mlsamuelson’s picture

@jdwfly - Thanks so much for the patch! :)

We have a lot of subscribers on this issue - any reviews?

marco_cruz’s picture

The module on #13 seems to work, for instance, with [block:user=online] I get:
"Who's online

There is currently 1 user online.

admin"

But with my own created views(blocks), using [block:views=show_my_conten-block_2]

I just get:
" My Block Title
Array"
where I should see a list of node titles

I Can't figure it out...

mlsamuelson’s picture

Anyone else experience issues with custom or views blocks?

jdwfly’s picture

yes, fix is to change line 101 of insert_block.module.

$content .= render($vars['block']['content']);

I've been using an older dev version of views and just upgraded today and got the error. Adding in the render should fix it though.

aangel’s picture

#13 worked for me, thanks!

alexrah’s picture

subscribing and gonna try on a test dev site

mlsamuelson’s picture

Status: Needs review » Fixed

Thanks for the port jdwfly! :) And thanks for the feedback aangel.

I've created a new 7.x-1.x development branch for Insert Block based on the patch in #13 and the fix in #19. A dev release should be visible on the project page within the next 12 hours.

If we don't have any big bugs reported for that branch in the next few weeks, I'll create a stable 7.x-1.0 release.

Status: Fixed » Closed (fixed)

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

  • Commit f5510c1 on 7.x-1.x, 8.x by mlsamuelson:
    Issue #1021012 by jdwfly : updating insert_block for D7.
    
    

  • Commit f5510c1 on 7.x-1.x, 8.x, 8.x-1.x by mlsamuelson:
    Issue #1021012 by jdwfly : updating insert_block for D7.