hook_node_presave runs when deleting node...?

I want to do some stuff before a node is added, but it seems that when i delete a node, it is calling hook_node_presave as well.

Just seems weird to me that presave would be called when deleting.

Anyone else noticed this?

How does D7 store roles?

How does Drupal 7.x store roles?

does anyone have code they'd like to share for parsing out all a user's roles and for adding a new role?

thanks.

Need an advice how to manage plugins and code

New to Drupal and need and advice.

More and more plugins added to our website, code and even core changes. It will get really messy very soon.

Is there some smart way to manage all this, have a snapshot of all the environment, plugin versions, settings?

What if I want to move my environment to another machine what should I do?

Appreciate your help.

Is it possible to use 1 View to "layout" multiple nodes?

Challenge:
I am creating a site that showcases a variety of artists. There should be a page called artists, with a name and picture of each, which hotlinks to the actual artist page with more information, media, etc.

What I've done:
- Created an Artist Page: Blank page with View displayed as Block, only showing Artist name and location, which links to the corresponding node.

-Created an "artist" Content Type: Name, Location, Description, Picture, YouTube videos, etc.

Problems when install tables with modules .install file schema.

Hello, I am trying to create two database tables at the install of my modules and automatically insert a default row into each. The module is for Drupal 7. I created a schema hook in my .install file and from my understanding drupal is supposed to automaticall install the tables at the install of the module.

When I try to get the module an error gets thrown when drupal tries to add the default row into the first table. the error is a follows:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'writerpulse.slides' doesn't exist: INSERT INTO {slides} (name, description, title, image, body) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => Default Slide [:db_insert_placeholder_1] => The default slide for the slide show. [:db_insert_placeholder_2] => This is the title. [:db_insert_placeholder_3] => /modules/fastprint_slideshow/slideimages/default.jpg [:db_insert_placeholder_4] => This is the body of a default slide. This slide was created during the installation of the Fast Print Slideshow. In order to replace these slides log into the site administrator account and edit the settings page. ) in require_once() (line 91 of C:\XAMPP\xampp\htdocs\writerpulse.test\modules\fastprint_slideshow\fastprint_slideshow.install).

How do I sell access to nodes in Drupal 7?

Hi! This is my first post in this forum...hope this is the best place in the site to post it!

I'm asking myself these days what I was thinking when I went to install Drupal 7 (instead of 6) in my site...
There are so many essencial modules that are not ported!

For example, UC Node Access, and UC Sign Up, are both the only simple way (I found) to sell both sign ups
to events and Node Access.

Let aside that I find obnoxious that such functionalities, so obvious, are not in the core neither of Drupal 7 nor UC...

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x