Block API


This project is not covered by Drupal’s security advisory policy.

block_api.jpg

Allows users to create block instances of predefined block types registered by other modules.

Features

Difference to core blocks:

  • Modules register block "types".
  • Administrators can spawn new instances of a block type.
  • Block instances are entities.
  • Unless a block type opts out, Block API takes over the storage of configuration settings per block instance.

Major ideas and parts for the block instance handling have been based and borrowed from JohnAlbin's excellent Menu block module.

An example API implementation is available in a hidden testing module, which provides the equivalent of custom blocks in core; i.e., a simple title and HTML body.

Block API itself provides no block types on its own.

Upcoming features

There's a hidden Custom block type sub-module under development, which:

  • Allows to create new, administrator-defined custom block types (leveraging Entity API module).
  • Allows to add fields to all registered block types.

The sub-module is not fully implemented yet. If you'd like to use this sub-module in production, please help with development and iron out the remaining issues.


Block API项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。
周安装量: 
22
维护状态: 
积极维护中
开发状态: 
积极开发中

开发版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.x-devtar.gz (15.88 KB) | zip (21.38 KB)2013年9月30日发布说明简 | 繁 | 更多