You are here

function globallink_block_preview_translated_block_content in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_block/globallink_block_receive.inc \globallink_block_preview_translated_block_content()

Previews translated block content in the form of JSON.

1 string reference to 'globallink_block_preview_translated_block_content'
globallink_block_menu in globallink_block/globallink_block.module
Implements hook_menu().

File

globallink_block/globallink_block_receive.inc, line 722

Code

function globallink_block_preview_translated_block_content() {
  $row_id = $_POST['rid'];
  $arr = globallink_block_get_translations_for_row_id($row_id);
  drupal_json_output($arr);
}