function theme_imagepicker_list in Image Picker 7
Same name and namespace in other branches
- 6.2 imagepicker.module \theme_imagepicker_list()
3 theme calls to theme_imagepicker_list()
- imagepicker_admin_groups_list in ./
imagepicker.admin.inc - imagepicker_admin_users_list in ./
imagepicker.admin.inc - Administration functions
- imagepicker_groups_list in ./
imagepicker.group.inc
File
- ./
imagepicker.module, line 1456 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function theme_imagepicker_list($variables) {
$header = $variables['header'];
$rows = $variables['rows'];
$max = $variables['max'];
$message = $variables['message'];
$pref = $variables['pref'];
$suff = $variables['suff'];
$label = $variables['label'];
$output = $label ? '<fieldset><legend>' . $label . '</legend>' : '';
$build['imagepicker_list'] = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
'#empty' => $message,
);
$build['imagepicker_pager'] = array(
'#theme' => 'pager',
);
$output .= $pref . render($build) . $suff;
$output .= $label ? '</fieldset>' : '';
return $output;
}