You are here

function _pdf_export_admin_schemes_to_select in PDF Export 7

Creates the schemes select options for the admin page.

Parameters

array $schemes: The array of schemes.

Return value

array The array to be used on the #options property of the select.

1 call to _pdf_export_admin_schemes_to_select()
pdf_export_admin_form in ./pdf_export.admin.inc
PDF Export admin form definition.

File

./pdf_export.admin.inc, line 76
PDF Export: Admin & config area.

Code

function _pdf_export_admin_schemes_to_select(array $schemes) {
  $options = array();
  foreach ($schemes as $scheme => $info) {
    $options[$scheme] = $info['name'];
  }
  return $options;
}