Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3783668
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:15:33+00:00 2026-05-19T11:15:33+00:00

I am writing a drupal module. In my module i have the following: In

  • 0

I am writing a drupal module.
In my module i have the following:

In my .module file I have:

function mymodule_managment_menu(){
$items = array();
$items['management/edit'] = array(
    'title' => 'Add Node',
    'page callback' => 'display_add',
    'access callback' => 'user_access',
    'file' => 'file.inc',
  );
  return $items;
}

in my file.inc i have:

function uc_am_display_edit()
{
  global $user;
  $node = array('uid' => $user->uid, 'name' => (isset($user->name) ? $user->name : ''), 'type' => 'track', 'language' => '');
  $output = drupal_get_form('track_node_form', $node);
  return $output;
}

when i go to http://myhost/management/edit i get the following warnning message:

warning: call_user_func_array()
expects parameter 1 to be a valid
callback, function ‘node_form’ not
found or invalid function name in
/var/www/includes/form.inc on line
378.

when debugging i get to form.inc:378 which is:

  $form = call_user_func_array(isset($callback) ? $callback : $form_id, $args);

where my $callback = ‘node_form’.
but still it is not defined.
of course, when i go to http://myhost/node/add/track i get the properly designed form i want.
when i debug it, i go throw thte same path of code, with the same variables value, and node_form is declared.
so my guess here is that my module is loaded before the node module, but just writing that makes doubt it, since the node module is a core module.
tried to increase my module weight value to 11 – didnt help.
please help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:15:34+00:00Added an answer on May 19, 2026 at 11:15 am

    The function node_form is defined in modules/node/node.pages.inc. That file is not loaded by default. You have to load it manually using module_load_include in your page callback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Drupal module and have run into what should be a trivial
I am writing a drupal module that involves a form with many checkboxes. E.g.
I'm writing a Drupal module that deals with creating new nodes from CSV files.
I am writing a Drupal module where users send down content (formatted as HTML).
I am writing module which allows to quick add users only by providing First
I'm writing a drupal module, and I need to write a query that returns
Hey guys, here is my problem. I am writing a Drupal module. A user
I have a module with four node types declared. My problem is, hook_load, hook_view
I have a Drupal 6 site where I've created a view that shows a
I have a data table which is populated with data unrelated to drupal content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.