Mercurial > defr > drupal > scald > dnd
view dnd.install @ 38:9e27e0aca323
Allow the library to specify a possible legend for the element.
This legend will be placed *outside* the atom representation, which means that
it's freely editable in the rich text and won't be taken over by Scald.
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 18 Sep 2009 15:17:05 +0200 |
parents | 5a44c430b7ac |
children |
line wrap: on
line source
<?php /** * Implementation of hook_schema(). */ function dnd_schema() { $schema = array(); $schema['dnd'] = array( 'description' => t('Associates library sources with textareas.'), 'fields' => array( 'textarea' => array('type' => 'varchar', 'not null' => TRUE), 'source' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE), 'settings' => array('type' => 'text', 'default' => ''), ), 'primary key' => array('textarea'), ); return $schema; }