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 (I'm using plupload). After doing some usability tests with real users, it appears it's not apparent what the "web" tab does (I'm using YouTube and Flickr optional addon modules). Is there an easy way to put in some help messages or something that will show on the initial uploader, without hacking media or the pluploader module? I would like to make it absolutely obvious from click 1 that you can easily add media from the web. I will probably cross post this in the pluploader module, but I thought it was also relevant here, most people are only using that module as a companion to the media module and on drupal gardens and in the media gallery modules both use plupload.

Comments

sol roth’s picture

Using 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.

function YOURMODULE_form_media_internet_add_alter(&$form, &$form_state){

$form['edit-embed-code'] = array (

 '#prefix' => '
 <strong>Support Providers: <div class="providericons"></strong><img src="/sites/all/themes/customtheme/images/icons/youtube_16.png" alt="YouTube"> YouTube  <img src="/sites/all/themes/customtheme/images/icons/flickr_16.png" alt="Flickr"> Flickr </div>
 For each YouTube video or Flickr Image you want to add, please put the direct web address (URL) of the individual image or video in the box above and click submit. For example, a correct YouTube web address (URL) would be http://www.youtube.com/watch?v=XXXXXXXX',

);

}

The code below displays perfectly, but causes the upload form not to work

function YOURMODULE_form_media_add_upload_multiple_alter(&$form, &$form_state){

$form['media-add-upload-multiple'] = array (

'#suffix' => 'glahhasdlfjasdlkfjasd',

}
tsvenson’s picture

Status: Active » Closed (fixed)

Closing due to no activity for a long time. Feel free to reopen with updated info if issue still remains.