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 have been struggling to find the variable that gives a node type in drupal 4.7.
I know that node_get_name($type) gives the name of node type, but how do you get the $type (node type) from the first place? My module has 3 newly defined node types (created in hook_node_info)and I have to differentiate which is chosen by a user. Either $node->type or $node->info didn't give a node type.
How do I create a custom filter ?
Do I need to write a new module or does drupal supports creating custom filters on the fly ?
Or better still is there a module that allows creating multiple custom filters ?
I would overide the normal user creation by checking before a third party usertable and then syncronize them two user accounts data.
I know the password as md5, the user and the email and i would add drupal users with them.
But original user creation function sends an email with random pass.
I installed the video.module but it's not working. I click on create content, then video and I get the following error message:
Fatal error: Call to undefined function: image_prepare() in /home/filmpod/public_html/podcast1/modules/video/plugins/video_image/video_image.module on line 70
1. Create a content type out of CCK with a selection box with several options.
2. Before the node is inserted/updated, I want to extract the selected option and manipulate it.
Step 2 what I don't know how to do. If I was modifying a story/page node, I would play around with hook_view() or something like that, but I'm not sure what to do with CCK.