Add empty state text to thumbnails display
mverbaar - October 25, 2009 - 00:11
| Project: | Media |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
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?
