0.0.1 • Published 10 years ago

generator-drupalentities v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Generator-drupalentities

Yeoman generator for generating a Drupal 7 entity boilerplate code.

Motivation

I wanted to automate away the boring parts in creating a Drupal entity. Current options were:

  1. use ECK
  2. Adopt model and customize it to your own needs.

I prefer the latter approach. I like my entities in code, rather than have it as a feature. ECK prefers it too.

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator: npm install -g generator-drupalentities
  • mkdir your module folder at sites/*/modules and cd into it
  • Run: yo drupalentities

Todo

  1. option to support revisions.
  2. switch bundles on or off for an entity.
  3. add more properties to an entity.

License

MIT License

Let me know if it works for you, love to hear feedback, bug reports etc. Contact.