You are here

function _patterns_lab_get_exp_to_options in Patterns 7

Same name and namespace in other branches
  1. 7.2 includes/forms/ \_patterns_lab_get_exp_to_options()

Builds an associative array of export options.

Checks if zip compression is available.

2 calls to _patterns_lab_get_exp_to_options()
patterns_forms_get_export_to_selector in includes/forms/
patterns_lab in includes/forms/
@file Functions related to exporting patterns.


includes/forms/, line 261
Functions related to exporting patterns.


function _patterns_lab_get_exp_to_options() {
  $options = array(
    PATTERNS_EXPORT_TO_DB => t('Import into the database'),
    PATTERNS_EXPORT_TO_FILE => t('Download as a pattern file'),
  if (class_exists('ZipArchive')) {
    $options[PATTERNS_EXPORT_TO_ZIP] = t('Download as a zip-archive');
  return $options;