function theme_uc_file_admin_files_form_show in Ubercart 7.3
Same name and namespace in other branches
- 6.2 uc_file/uc_file.admin.inc \theme_uc_file_admin_files_form_show()
Returns HTML for uc_file_admin_files_form_show().
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
See also
uc_file_admin_files_form_show_files()
1 theme call to theme_uc_file_admin_files_form_show()
- uc_file_admin_files_form in uc_file/
uc_file.admin.inc - Form builder for file products admin.
File
- uc_file/
uc_file.admin.inc, line 198 - File administration menu items.
Code
function theme_uc_file_admin_files_form_show($variables) {
$form = $variables['form'];
// Render everything.
$output = '<p>' . t('File downloads can be attached to any Ubercart product as a product feature. For security reasons the <a href="!download_url">file downloads directory</a> is separated from the Drupal <a href="!file_url">file system</a>. Below is the list of files (and their associated Ubercart products, if any) that can be used for file downloads.', array(
'!download_url' => url('admin/store/settings/products', array(
'query' => array(
'destination' => 'admin/store/products/files',
),
)),
'!file_url' => url('admin/config/media/file-system'),
)) . '</p>';
$output .= drupal_render($form['uc_file_action']);
$output .= drupal_render($form['file_select']);
$output .= theme('pager');
$output .= drupal_render_children($form);
return $output;
}