# HG changeset patch # User David Eads # Date 1234769994 21600 # Node ID cee0530857556eeb4df411680fe7285516c29fdb # Parent 4ed512a32d98e425b388411200ad84df8793c892 Fleshing things out. diff -r 4ed512a32d98 -r cee053085755 dnd.info --- a/dnd.info Mon Feb 16 00:31:17 2009 -0600 +++ b/dnd.info Mon Feb 16 01:39:54 2009 -0600 @@ -0,0 +1,7 @@ +; $Id$ +name = DnD Library +package = User Interface +description = Enable a drag and drop media interface for rich text editors. +dependencies[] = wysiwyg +core = 6.x + diff -r 4ed512a32d98 -r cee053085755 dnd.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dnd.install Mon Feb 16 01:39:54 2009 -0600 @@ -0,0 +1,18 @@ + t('Associates library sources with textareas.'), + 'fields' => array( + 'textarea' => array('type' => 'varchar', 'not null' => TRUE), + 'source' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE), + ), + 'primary key' => array('textarea'), + ); + return $schema; +} + diff -r 4ed512a32d98 -r cee053085755 dnd.module --- a/dnd.module Mon Feb 16 00:31:17 2009 -0600 +++ b/dnd.module Mon Feb 16 01:39:54 2009 -0600 @@ -0,0 +1,23 @@ + 'Drag and Drop Library', + 'page callback' => 'dnd_admin', + 'description' => 'Configure drag-and-drop enabled textareas.', + 'access arguments' => array('administer dnd'), + 'file' => 'dnd.admin.inc', + ); + return $items; +} + +/** + * Implementation of hook_perm(). + */ +function dnd_perm() { + return array('administer dnd'); +}