summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoloc2012-07-03 15:31:28 (GMT)
committer Moloc2012-07-03 15:31:28 (GMT)
commit9cbcf690da5fef2386a1148f12aa9ac933a8aa7d (patch)
tree27eec8998797e2fc2c62a7f77166a2f1321fb88e
parent6e23886f84df70911f02a39d2adf1fa94d9dc94d (diff)
Issue #1391928 by Moloc: Fixed remove media checkbox not rendered.
-rw-r--r--media_gallery.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/media_gallery.module b/media_gallery.module
index 7166f27..2d825b7 100644
--- a/media_gallery.module
+++ b/media_gallery.module
@@ -992,7 +992,9 @@ function _media_gallery_add_remove_checkbox(&$form, &$form_state, $node) {
// Put the remove checkbox inside the "preview" section, so it shows up
// underneath the thumbnail.
- $form['preview']['remove'] = array(
+ // @todo: Move into $form['preview']['remove'] when issue
+ // http://drupal.org/node/1055986 get committed.
+ $form['remove'] = array(
'#type' => 'checkbox',
'#title' => t('Remove from gallery'),
'#description' => t('The original file remains in your <a href="@library">media library</a>.', array('@library' => url('admin/content/media'))),