This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

retrieve value of an object property

I made a print_r of the $node object to view its properties. This is the output.

stdClass Object
(
    [nid] => 3
    [vid] => 3
    [type] => shoes
    [status] => 1
    [created] => 1158082601
    [changed] => 1158082601
    [comment] => 2
    [promote] => 1
    [moderate] => 0
    [sticky] => 0
    [revision_timestamp] => 1158082601
    [title] => Cake
    [body] => dsaflfjsdalkfjskdalf
    [teaser] => asdklfjdaskfkldsf
    [log] => 
    [format] => 1
    [uid] => 1
    [name] => admin
    [picture] => 
    [data] => a:2:{s:6:"submit";s:18:"Create new account";s:7:"form_id";s:13:"user_register";}
    [last_comment_timestamp] => 1158082601
    [last_comment_name] => 
    [comment_count] => 0
    [copyright] => dgkadfjklasfjdklafdskl
    [taxonomy] => Array
        (
            [6] => stdClass Object
                (
                    [tid] => 6
                    [vid] => 1
                    [name] => bar
                    [description] => 
                    [weight] => 0
                    [language] => 
                    [trid] => 0
                )

        )

)

I want to retrieve the value "bar" but I can't figure out how to do that,my serveral attempts fails . More insight on how to do that will be much appreciated. Thanks

I tought this will work $node->taxonomy[6]->name, but never worked.

new concept for (node) modules

example (contact.module)

delegate the following tasks:
- create a content-type for the contact-messages (cck)
- send to specific emailaddress(es) after creation (workflow, actions)
- lists (all messages/my sended messages/my received messages) (views)

The only thing that is needed:
- installer which guides the admin through the tasks listed hereabove. (maybe with helpers for basic configurations)
- overviewpage for these settings (for better ui)
- possibillity to export configured settings (could be delegated too)

Forms API. Sequence of forms HOWTO

Dear friends,

Forms API in 4.7 looks great! But I can't figure out how to do a sequence of forms.

Form 1 has a single selector for issue's ID. After the user submits this ID two froms must be displayed:
Form 2 "Change this Item"
Form 3 "Remove this Item"

It is, of course, possible to merge 1-2, 1-3 and deal with two separate forms, but I don't like this solution.

Problem with hook_user

I hope, somebody can help. For a module I use hook_user. I can change the view, i can change the form, i can change categories. But no update and validate operations happen. I only get $op = view, categories, load, form ... no update, no validate, no sub,it ... where I am wrong?

user galleries

i want to have user galleries for every user
so they can upload thier photos and it goes into thier own gallary and have a direct url such as www.mysite.com/membergallery/user
i want the link to be automaticly displayed in the users profile

i might actually eventually try to install a flash slideshow for each user

anyone can help me with ideas how to do this?

Getting an existing form onto multiple pages?

Hi There -

How would I take one of the large forms, like the one for the project module, and break it up into smaller bite-sized pieces? (I'd like to have tabs for each section of the form with a tab to edit the info from each, but I'll be happy with what I can get for now.) Is this possible? How do I need to think about it?

Any help in this area would be gratefully appreciated.

Thanks,

Lee

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions