sorry if this has been asked before, I looked around but haven't found this specific question on StackOverFlow.com.
I have a view called 'view-post-wall' which I'm trying to add the form that submits posts to this view called 'post' via ajax submit, though I haven't begun adding ajax yet.
My module's name is 'friendicate'
I don't understand what I'm missing here, I'm following a tutorial and have been unable to get past this issue for 2 days now.
I don't get any errors either.
Here is the module code in full
function _form_post_ajax_add() { $form = array(); $form['title'] = array( '#type' => 'textfield', '#title' => 'Title of post', ); $form['body'] = array( '#type' => 'textarea', '#title' => 'description', ); $form['submit'] = array( '#type' => 'submit', '#value' => 'Submit post', ); return $form; } function post_ajax_preprocess_page(&$variables) { //krumo($variables); $arg = arg(); if($arg[0] == 'view-post-wall') { $variables['page']['content']['system_main']['main']['#markup'] = drupal_render(drupal_get_form('_form_post_ajax_add')); } }