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 am currently looking at writing some drupal code that will allow a user on his 'account information' page
,ie Home > user account > Paul, to select an emoticon icon that will be attributed to his account and will be displayed
at various positions on the page such as under Online users.
Can anyone offer any guidance in getting started in particular
1. How is the various content on 'account information' page generated
2. For example how/where would i find the code that generates the Online users content.
I just created a new project for the Node vote module.
It allows users with the appropriate role to vote of nodes, assigning each a score from 1 to 10. By design, users do not see the score for a node untl they have voted but that could be changed if needed.
I am making some design decisions for a module I am working on, but I don't know enough about Drupal access control to make the right decisions...
Briefly, I want to be able to prevent anonymous access to some content generated by my module, but allow anonymous access to other content. I also want to have a search function operate on my module.
How do I get access to my node id? I have a custom table which I want to link with the main node id that is part of all served drupal pages.
I see lots of function calls with ($node) or (&$node) in them but that presupposes you have a pointer to $node. I also see several hooks like _insert, _update, _load with access to $node but adding those hooks to my module doesn't seem to help.
I'm not sure when they get called or how I could pass the data to my receive hook.
After making a new Flexinote content type, including mp3 and gallery field types,
I inserted a page, only to know that some dir for mp3 didnt exist and galery needed configuration, BUT after that;
NO PAGES is shown whatsoever, including admins, users, non login content, no nothing!! Figure I got to create a whole new setup, but if anybody would know a simple way trough to restore some defaults, or possible delete the malicious node, I should be so gratefull for saving a days work or 2!!