Mercurial > defr > drupal > scald > dnd
annotate dnd.module @ 1:cee053085755
Fleshing things out.
author | David Eads <eads@chicagotech.org> |
---|---|
date | Mon, 16 Feb 2009 01:39:54 -0600 |
parents | 4ed512a32d98 |
children | 5a44c430b7ac |
rev | line source |
---|---|
eads@1 | 1 <?php |
eads@1 | 2 |
eads@1 | 3 /** |
eads@1 | 4 * Implementation of hook_menu(). |
eads@1 | 5 */ |
eads@1 | 6 function dnd_menu() { |
eads@1 | 7 $items = array(); |
eads@1 | 8 $items['admin/settings/dnd'] = array( |
eads@1 | 9 'title' => 'Drag and Drop Library', |
eads@1 | 10 'page callback' => 'dnd_admin', |
eads@1 | 11 'description' => 'Configure drag-and-drop enabled textareas.', |
eads@1 | 12 'access arguments' => array('administer dnd'), |
eads@1 | 13 'file' => 'dnd.admin.inc', |
eads@1 | 14 ); |
eads@1 | 15 return $items; |
eads@1 | 16 } |
eads@1 | 17 |
eads@1 | 18 /** |
eads@1 | 19 * Implementation of hook_perm(). |
eads@1 | 20 */ |
eads@1 | 21 function dnd_perm() { |
eads@1 | 22 return array('administer dnd'); |
eads@1 | 23 } |