You are here

function _photos_json in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 photos.module \_photos_json()

Handles JSON.

1 call to _photos_json()
photos_data_sub_block_slide in inc/photos.data.inc
Sub-album slideshow page.

File

./photos.module, line 2337
Implementation of photos.module.

Code

function _photos_json($type, $v) {
  if ($type == 'en') {
    return drupal_json_encode($v);
  }
  else {
    return drupal_json_decode($v);
  }
}