On a node or comment delete, we do not want the node or comment to be deleted; rather we want to be able to set the deleted flag in the field_data_body or the field_data_comment_body. How can I achieve this? Do I need to create a module and implement the hook_node_delete function call. Also, what do I need to do in the hook_node_delete function so that the node does not get deleted from the database.
Also, we are hoping that if we set the deleted flag, then these nodes/ comments would not get displayed to the end-user.
I am trying to do the following on my site for a sports club.
With the webform module new members (of the club, not of the site) can submit their name and all other information we need. This works.
The only thing i can do now is download the submitted data.
I would however want to manage the members list using the site (when logged in), i would want to see the submitted data like i would see it in excell/access, and i would like to add fields which i can fill in myself (for example a field in which i note whether that member payed his membership fee or not).
In other words, is it even possible (are there any tutorials? couldnt find anything) on how to create an advanced search. I'm looking for a module similiar to this http://drupal.org/project/jobsearch for Drupal 7.
After having developed a new feature locally, I tested it on a fresh install and it worked. Then, I wanted to move it to my site at my host.
When enabling the feature the status remains cheking... Via firebug I discovered the following error:
Fatal error: Class 'panels_display' not found in /home/littlest/public_html/sites/all/modules/ls_stories/ls_stories.pages_default.inc on line 53
on line 53 of that Feature there is: $display = new panels_display;
Both the new install and the production site run CTOOLS Alpha4.
I'm trying to set up permissions that will hide a certain module's configuration from the configuration page (admin/config). I tried adding a 'access arguments' to the hook_menu(), but it doesn't seem to do anything. The best thing I could do is send a drupal_access_denied() if user_access() returns false, but the link is still showing on the configuration page. I also tried running an access callback function, but I get the same result.
I plan to have multiple roles on my site, some getting partial configuration permissions.