By marvs on
where I can find more examples codes using the different functions inside the common.inc and other core modules? thanks!
Edited by WorldFallz - added subject.
where I can find more examples codes using the different functions inside the common.inc and other core modules? thanks!
Edited by WorldFallz - added subject.
Comments
api.drupal.org
Go to http://api.drupal.org/api/file/includes/common.inc/6 and click on the function you want to know more about (for instance drupal_add_link). On that page (http://api.drupal.org/api/function/drupal_add_link/6), click '▾ 3 functions call drupal_add_link()'. Now you'll see a list of other functions that call drupal_add_link(). Follow the link to one of those functions to see how they implemented drupal_add_link().
PS. When starting a new forum topic, please use a describing title.
_
sorry, anyway thank you so much. How about the $message['id'] constant values like 'user_register_no_approval_required', 'user_register_pending_approval', etc.. Where I can find the other constants?
constants, globals and variables
I don't know the values 'user_register_no_approval_required' and 'user_register_pending_approval'; where did you find them?
The Drupal API documentation has a list of constants and globals, maybe that's what you're looking for? Or maybe you're looking for the variables stored in a Drupal installation. You can view and edit them by installing the devel module (http://drupal.org/project/devel) and going to www.example.com/devel/variable.
_
I edited your post to add a subject-- please use an accurate subject when creating threads. Thanks.
adding fields to email
Thanks for the replay, but I've got this code in this forum. This code works but I'm just wondering about the $message['id'] and 'user_register_pending_approval_admin'. I want to use profile module to add another information in
registration. I want to add !fullname field to show in user's emailed information. Can you give more efficient code than this?
The fact that you found this
The fact that you found this code ont this forum, doesn't mean it will just work. It may be part of a larger module, and modules can depend on other modules. The code above tells me that it comes from a module called 'modifyMail', but I can't find such a module in the repositories. This means it must be a custom module, or at least it's not yet contributed to the community. Instead of asking us about this code, I think you'd better go back the the place where you found this code and ask for support there.
_
ok, thanks