You are here

function _photos_swfu_switch in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 photos_swfu/photos_swfu.module \_photos_swfu_switch()

SWFUpload switch.

1 string reference to '_photos_swfu_switch'
photos_swfu_form in photos_swfu/photos_swfu.module
Build SWFU form.

File

photos_swfu/photos_swfu.module, line 171

Code

function _photos_swfu_switch() {
  $swfu_switch = isset($_SESSION['photos_swfu_switch']) ? $_SESSION['photos_swfu_switch'] : 0;
  if ($swfu_switch != 1) {
    $_SESSION['photos_swfu_switch'] = 1;
    drupal_set_message(t('HTML form.'));
  }
  else {
    $_SESSION['photos_swfu_switch'] = 0;
    drupal_set_message(t('Flash upload form.'));
  }
}