function ctools_ajax_simple_form

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

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);
}