Displaying hook_form I have implemented a hook_form in my custom module and I can't figure out how I can get the form to display.

Here is my hook form:

   function data_retrieval_form($node, &amp;$form_state)
    {
        $type = node_type_get_type($node);

        $form ['title'] = array(
            '#type' =&gt; 'textfield',
            '#title' =&gt; check_plain($type-&gt;title_label),
            '#default_value' =&gt; !empty($node-&gt;title) ? $node-&gt;title : '',
            '#required' =&gt; TRUE, '#weight' =&gt; -5
        );

        $form ['field1'] = array(
            '#type' =&gt; 'textfield',
            '#title' =&gt; t('Custom field'),
            '#default_value' =&gt; $node-&gt;field1,
            '#maxlength' =&gt; 127,
        );
        $form ['selectbox'] = array(
            '#type' =&gt; 'select',
            '#title' =&gt; t('Select box'),
            '#default_value' =&gt; $node-&gt;selectbox,
            '#options' =&gt; array(
                1 =&gt; 'Option A',
                2 =&gt; 'Option B',
                3 =&gt; 'Option C',
            ),
            '#description' =&gt; t('Choose an option.'),
        );

        return $form;
    }


I have also implemented hook_menu which registers a url with a callback to the form:

function data_retrieval_menu()
{
    $items = array();

    $items ['examples/form_example'] = array(
        'title' =&gt; 'Example Page',
        'page callback' =&gt; 'drupal_get_form',
        'access arguments' =&gt; array('access content'),
        'type' =&gt; MENU_SUGGESTED_ITEM,
    );

    return $items;
}


The problem I am having is that I cant understand how to get the form to display, the url does not work, how exactly do I display the form?
Please check hook_menu() documentation.

You need to specify page callback arguments like:

'title' =&gt; 'Example Page',
'page callback' =&gt; 'drupal_get_form',
'page arguments' =&gt; array('my_form_id'),
'access arguments' =&gt; array('access content'),
'type' =&gt; MENU_SUGGESTED_ITEM,