function mediafront_get_node_json in MediaFront 7
Same name and namespace in other branches
- 6.2 mediafront.module \mediafront_get_node_json()
- 6 mediafront.module \mediafront_get_node_json()
Gets a node in JSON format
1 string reference to 'mediafront_get_node_json'
- mediafront_menu in ./
mediafront.module - Implements hook_menu().
File
- ./
mediafront.module, line 372
Code
function mediafront_get_node_json($node = null, $args = null) {
$params = mediafront_parse_params($_POST['params']);
$node = $node ? check_plain($node) : check_plain(trim($params[1]));
$args = $args ? check_plain($args) : check_plain(trim($params[2]));
print drupal_json_encode(mediafront_get_node($node, $args));
}