Mercurial > defr > drupal > scald > dnd
comparison modules/dnd_test/dnd_test.module @ 30:2d49adbd8992
Start of applying a last layer of polish: starting the process of cleaning up the library code.
author | David Eads <eads@chicagotech.org> |
---|---|
date | Tue, 17 Mar 2009 21:29:00 -0500 |
parents | 7d6bf2dca269 |
children | 767ebf925654 |
comparison
equal
deleted
inserted
replaced
29:37ca57016cbe | 30:2d49adbd8992 |
---|---|
28 function dnd_test_form_alter(&$form, &$form_state) { | 28 function dnd_test_form_alter(&$form, &$form_state) { |
29 if ($form['#id'] == 'node-form' && $form['type']['#value'] == 'page') { | 29 if ($form['#id'] == 'node-form' && $form['type']['#value'] == 'page') { |
30 $form['body_field']['body']['#dnd-enabled'] = TRUE; | 30 $form['body_field']['body']['#dnd-enabled'] = TRUE; |
31 $form['body_field']['body']['#dnd-settings'] = array( | 31 $form['body_field']['body']['#dnd-settings'] = array( |
32 'drop_selector' => '#edit-body-dnd-library .drop', | 32 'drop_selector' => '#edit-body-dnd-library .drop', |
33 'callback' => 'dnd_test_dnd_library', | |
34 'url' => 'dnd-test/library/?json', | 33 'url' => 'dnd-test/library/?json', |
35 ); | 34 ); |
36 $form['body_field']['body']['#rows'] = 28; | 35 $form['body_field']['body']['#rows'] = 28; |
37 } | 36 } |
38 } | 37 } |