You are here

function ctools_ajax_simple_form in Chaos Tool Suite (ctools) 7

1 string reference to 'ctools_ajax_simple_form'
ctools_ajax_sample_menu in ctools_ajax_sample/ctools_ajax_sample.module
Implementation of hook_menu()

File

ctools_ajax_sample/ctools_ajax_sample.module, line 73
Sample AJAX functionality so people can see some of the CTools AJAX features in use.

Code

function ctools_ajax_simple_form() {
  ctools_include('content');
  ctools_include('context');
  $node = node_load(1);
  $context = ctools_context_create('node', $node);
  $context = array(
    'context_node_1' => $context,
  );
  return ctools_content_render('node_comment_form', 'node_comment_form', ctools_ajax_simple_form_pane(), array(), array(), $context);
}