I have an insert hook that catches nodes whenever the user adds a node. So here\'s my 开发者_如何学Pythoncode:
I need to play some videos in my Drupal site, and need to choose a module that can actually do that. I´ve checked out some video modules, but they are primarily to upload videos, but I don´t need to
I am working with the commerce module to create an online store.I am modifying the products .install file to create a content type (as I have been told this is required) and as part of that content ty
I would like to create a custom views, because some database fields are not accessible by drupal views UI. I just exported an existing view into a file called my_module_views_default.inc that contains
function example_menu() { $items[\'admin/config/example\'] = array( \'title\' => \'Example\', \'description\' => \'example configuration\',
I\'m using the following code to create a database schema using the .install file in drupal-6 function myModule_install() {
I want to do a simple SQL query in Drupal, but I\'m not sure how. I would like to achieve this: SELECT COUNT(nid) AS i_count FROM node WHERE `created` != `changed`;
I am setting up a configuration page for a new module and I am having trouble getting my textfield to remember data I previously entered.
Should I call the db_开发者_如何学Gotransaction() inside the node\'s CRUD hook (like hook_load, hook_insert, etc)?
i\'m trying to alter drupal view-2 query, basically want to add one more table. I\'m able to alter the where clause of query using hook_views_query_alter() but don\'t know h开发者_JAVA技巧ow to join o