BIG BIG BIG update
V0 of first interface going to refactor JS
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
function jeemod_chapter($nid){
|
||||
$viewmode = "chapter";
|
||||
|
||||
$rep = array(
|
||||
"nid" => $nid,
|
||||
"viewmode" => $viewmode
|
||||
);
|
||||
|
||||
if($nodeview = node_view(node_load($nid),$viewmode)){
|
||||
$rep = $rep+array(
|
||||
'node' => drupal_render($nodeview),
|
||||
);
|
||||
drupal_json_output($rep);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user