Info plugins

Categories

Component ID

2543868

Component name

Info plugins

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

615

Component created

Component changed

Component body

This module is for developers. It provides ctools plugins for common _info types of functionality.

For example, it allows you to define a core Drupal block the same way as you would define a ctools content_type plugin or a context one to use with Panels.

It aims at clearing a bit the mess that ensues when a site needs to define many such blocks or other _info based extensions. I always hated the switch statements that cluttered the hook_block_* or hook_field_formatter_* implementations.

Installing this module will allow you to specify which type of plugin you want enabled (you may not use all of them so no sense including their files) and then define new plugins that contain in one file (or folder) all the logic for that particular plugin. Very clean and organized.

Module dependencies:

So far, the available plugin types are for the following extension points:

Drupal core:

  • Blocks
  • Tokens
  • Field formatters
  • Field widgets
  • Filters
  • Actions

Contrib: