As stated in the project page, you have to install 7.x version also on drupal 6 installation:

Drush: Use 7.x-2.x-dev as a Drush plugin (you can still use 6.x-2.x-dev too, but it's only getting bugfixes). Just like Drush itself, the Module builder Drush plugin is independent of Drupal version, and can generate code for Drupal 5, 6, or 7, depending on the version of the site Drush finds

Using drush I downloaded the module, but when I tried to enable it:

module_builder is incompatible with the Drupal version.

It 7.x version really compatible with drupal 6? Is only a matter of core setting in .info file?

I'm using Drush 4.5 on a Drupal 6.22 fresh install.
Enabled module are Schema, Coder, Coder Tough Love, Devel ( itself, generate and node access ), Devel Themer and Module Builder.

Thanks

Comments

joachim’s picture

Category: bug » support
Status: Active » Fixed

If you want to use MB as a UI module -- that is, installed within Drupal, then you need to match the version numbers as with any normal module.

> Drush: Use 7.x-2.x-dev as a Drush plugin (you can still use 6.x-2.x-dev too, but it's only getting bugfixes). Just like Drush itself, the Module builder Drush plugin is independent of Drupal version, and can generate code for Drupal 5, 6, or 7, depending on the version of the site Drush finds

What this means is that if you install MB *only as a Drush plugin* you should use the 7.x-2.x-dev. You can then use Drush to generate modules for any version of Drupal for which you happen to run Drush.

Does that make it clearer? How could the project page text be improved?

end0rama’s picture

But what *only as a Drush plugin* means? Do I have to copy in the drush folder?

I couldn't find infos around about drush plugins, and so was difficult to figure out how to properly install this..

joachim’s picture

> But what *only as a Drush plugin* means? Do I have to copy in the drush folder?

Yes.
If you use Drush, you should probably know what a drush plugin is :)

'only as a Drush plugin' means that Drupal doesn't know about it. You only use it from Drush.

end0rama’s picture

If you use Drush, you should probably know what a drush plugin is :)

I use drush, but I didn't know about plugins! Can you post me some documentation? I couldn't find anything about...

Status: Fixed » Closed (fixed)

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