Download & Extend

Add empty state text to thumbnails display

Project:Media
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I just noticed the thumbnails display has no empty text yet, so I tried this in media_admin_thumbnails (media.admin.inc):

$form['files'] = array(
   '#tree' => TRUE,
   '#empty' => t('No media available.'), // Doesn't work.
   '#prefix' => '<div class ="media-display-thumbnails clearfix">',
   '#suffix' => '</div>',
  );

But the #empty doesn't seem to be picked up. I'm not very familiar with the forms API yet, could someone help me out with this?

Comments

#1

Status:active» fixed

fixed

#2

Status:fixed» active

ah, whoops, this still needs action...

#3

Status:active» fixed

this is fixed now.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here