drupal 7 - Put node add form in module -


i want include node add form within module page, i'm not sure how make drupal happy - if

global $user; module_load_include('inc', 'node', 'node.pages');     $form = drupal_get_form("project_node_form", $node_form); $rtn .= drupal_render($form); 

i error call undefined function user_access()

should wrap in function? how call it?

did try embed hook: template_preprocess_page ?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -