Mercurial > defr > drupal > scald > dnd
diff dnd_test/dnd_test.module @ 24:4f58fa0a9a6d
Cleaned up some library behavior, changed editor representation cache to track a title and a body for representations, to allow a little more dynamic composition.
author | David Eads <eads@chicagotech.org> |
---|---|
date | Wed, 11 Mar 2009 01:47:57 -0500 |
parents | a72403cfa9a8 |
children |
line wrap: on
line diff
--- a/dnd_test/dnd_test.module Tue Mar 10 13:55:27 2009 -0500 +++ b/dnd_test/dnd_test.module Wed Mar 11 01:47:57 2009 -0500 @@ -62,7 +62,7 @@ } /** - * Page call back that returns some JSON + * Page callback that returns some JSON */ function dnd_test_library() { $page = ($_GET['page']) ? $_GET['page'] : 1; @@ -79,7 +79,7 @@ /** * Create contrived output */ -function dnd_test_generate_library($page = 1, $limit = 12) { +function dnd_test_generate_library($page = 1, $limit = 8) { $start = ($page * $limit) - ($limit); $end = $page * $limit; @@ -106,7 +106,10 @@ function dnd_editor_items($i) { $item = array(); foreach(array(t('S'), t('M'), t('L')) as $size) { - $item[$i .'-'. $size] = theme('dnd_editor_item', $i, $size); + $item[$i .'-'. $size] = array( + 'body' => theme('dnd_editor_item', $i, $size), + 'title' => 'Item '. $i .'-S', + ); } return $item; }