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
Post a Comment