Mercurial > defr > drupal > scald > dnd
changeset 1:cee053085755
Fleshing things out.
author | David Eads <eads@chicagotech.org> |
---|---|
date | Mon, 16 Feb 2009 01:39:54 -0600 |
parents | 4ed512a32d98 |
children | 5a44c430b7ac |
files | dnd.info dnd.install dnd.module js/dnd-library.js |
diffstat | 3 files changed, 48 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 +
--- /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 @@ +<?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), + ), + 'primary key' => array('textarea'), + ); + return $schema; +} +
--- 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 @@ +<?php + +/** + * Implementation of hook_menu(). + */ +function dnd_menu() { + $items = array(); + $items['admin/settings/dnd'] = array( + 'title' => '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'); +}