Hello, I have a field which is a unix epoch offset time, that I'd like to filter on. I need to compare it with strtotime("today") when the view is loaded by the user. How would one go about doing that.
I'm trying to create a CCK content type programatically as part of the install process for a module, but I'm not quite able to figure it out. Judging by this post, it's possible to do it using the export of the field type and drupal_execute('content_copy_import_form', $form_values);. The question I have it where do I use this code? Can I use it as part of hook_install() in the .install file? Or do I create a function in the .module file that uses this and then just call it as a callback function somehow?
I am trying to add a new automatic email that gets sent out when people's accounts are verified in our system. This is different from the message that goes out when someone applies for the account. I want an extra message when a real person verifies that the applicant is who she claims to be.
I'm creating a custom content type but not with CCK as I need the extra flexability.
I'm using Pro Drupal Development and everything was going smoothly until I tried adding checkboxes to my node creation form in hook_form. I can't seem to figure out how to save them to the database nor how to retrieve those values from $node so I can add them back to the node form when editing my content. As an added complication (I'm guessing), the checkbox elements are inside a fieldset.
Is there any easy way, without writing a full module, to hide user profile categories ( by role or other means )?
I have installed the profile module, which allows me to specify new profile items, and I can make them visible using only very broad options, like public or private. Those are more to deal with if 'other' people can see them. I want to be able to control whether the user in question can se them.