Skip navigation
Help

theme_uc_file_admin_files_form_show

6 uc_file.admin.inc theme_uc_file_admin_files_form_show($form)
7 uc_file.admin.inc theme_uc_file_admin_files_form_show($variables)

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()

Related topics

File

ubercart/uc_file/uc_file.admin.inc, line 195
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;
}