You are here

function asset_json_delivery in Asset 7

Delivery callback for json format.

1 string reference to 'asset_json_delivery'
asset_menu in ./asset.module
Implements hook_menu().

File

./asset.module, line 405
Asset module.

Code

function asset_json_delivery($page_callback_result) {
  if (!empty($page_callback_result['tag']) && !empty($page_callback_result['content'])) {
    print drupal_json_encode(array(
      'tag' => $page_callback_result['tag'],
      'content' => $page_callback_result['content'],
    ));
  }
}