Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have my module called mymodule.

In mymodule.module I have:

function mymodule_menu() {
    $items['mymodule/ship/%node'] = array(
        'title' => t('Shipment details'),
        'page callback' => '_mymodule_addr',
        'page arguments' => array(2),
        'access callback' => TRUE,
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
        'weight' => 0,  
    );
    return $items;
}

I want to render the addressfield widget inside the page. Then I want to read form values. Can you help me?

share|improve this question
i am drupal developer, give me more info about what you want to do? – zhilevan May 28 '12 at 18:41
I want user add address to a node, but not in the edit form. I want, programmatically, use a custom page to render the form and save informations. I now I can use panels, but I'd like to program it. – Admdebian May 29 '12 at 21:42
this mean you want to save node path programmmatically? – zhilevan May 30 '12 at 4:59
no. I have already saved my node, but without address field. Now, I'd like to ask user his address and update my node. I want to render in the page the standard form of the widget "addressfield". – Admdebian May 30 '12 at 12:59
that is very similar to my needs: drupal.stackexchange.com/questions/25140/… – Admdebian May 30 '12 at 13:03
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.