Closed (fixed)
Project:
Plupload integration
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2011 at 17:45 UTC
Updated:
19 Jun 2012 at 12:51 UTC
I also created an issue in the media module, but it's specifically deals with plupload, so this may be a better spot. I need to add a spinet of html (a sentence with a few icons in it) that will show on the "upload" tab above the Filename drag and drop upload box. Without hacking the module is there an easy way to do this? Here is a link to the issue in the media module as well. http://drupal.org/node/1302754
I see some of the form elements are set explicitly in the media module for plupload
$form['upload']['#type'] = 'plupload';
$form['submit']['#value'] = t('Start upload');
Is there a way to add help text like this?
Comments
Comment #1
sol roth commentedUsing hook form alter, I was able to add the perfect description to the media tab on the media gallery module (snippet is below), BUT the same technqiue applied to the main plupload form (the upload tab) using #prefix or #suffix from the forms api displays perfectly but causes a weird error when trying to upload items (nothing selected or invalid extension). Can I use form alter to modify the main upload form from plupload?
The code below works perfectly.
The code below displays perfectly, but causes the upload form not to work
Comment #2
slashrsm commentedYou can also use $element['#description'].