Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm looking for documentation on the meaning/relationship of database fields in Drupal, but my searches aren't finding anything. It's not in in the database.mysql file, not in drupaldocs.org, and I don't see it any of the handbooks.
For example, what is the meaning of the "status" field in the node module? Specifically, if a person registers, but doesn't answer his/her confirmation email, is there a specific value for this?
Is there any special hook which allows to interact with template? Also, I'd like to know how can I use hooks which are located not in core.php(for example, hook_view, which is located in node.php)?
Taxonomy_theme didn't do quite what I wanted, so I hacked/cut and pasted together a module which will change the theme based upon the role of the current user. To my amazement, I got it working in 2 days. (up to this, my experience with php was limited to redesigning some php-based templates, and I haven't done any real programming since high school) Once I get this to a nice, releaseable state I have no intention of maintaining it. There's not much to it and most anyone should be able to figure it out.
handy features:
can select a different theme for each role, including a "user select" theme which gives user selected theme precedence
you can "weight" roles, so that a certain role will take precedence over another when the theme is determined
things to do:
make sure it's compatible with all other theme-selecting systems
figure out how hard it would be to remove theme selection section from profile pages of users whose roles have predetermined themes, and do it if it's not too hard.
clean up/comment code. oh man is it ugly.
optimize code
figure out which parts of the code is actually completely unnecessary (e.g. the parts of code that are left over from modules I cannibalized and don't really understand but haven't tested the module without yet) and get rid of them
Hello, forums,
I am currently almost complete with a simple module that integrates events and venues from www.Eventful.com with the event.module calendar. I am trying to get a cvs account so i can contribute it, but if i finish it I will post it online somewhere.
The purpose of this post is to see if anyone else visiting these forums is developing an Eventful.com module.
Please comment here on what your status is, etc. I'll post a link once I have a working site up.
But I searched the API for "StdClass" and it doesn't show up. Is this a PHP thing or is there something I can look at to totally understand
where StdClass came from?
I'll carry on using it for now but I'd like to understand.
I have implemented some actions and when a particular action is activated by a workflow change ("Submit for evaluation") I
want to create a new node of type "evaluation" which has a field "evalstatus" which is set to "0".
I have no idea how to actually do this properly.
I tried doing a call to
node_save(array('type'=>'evaluation'));
This does put a new node into the node table but what is the correct way to make things propagate into my custom table?