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.
While trying to create a module that will import certain data as a type of node that I created using CCK, I am getting these warnings after the $node object saves. However, form_get_errors() returns nothing. Is this a bug in the core node code?
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 549.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 554.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 556.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 557.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 575.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 578.
The following is the function that I wrote to test out saving my new $node object:
<?php
const DEFAULT_NODE_IMPORT_TITLE = "imported by doc_import";
const DEFAULT_NODE_TYPE = "policy";
const DEFAULT_NODE_FORMAT = 3;
// Default to a published status:
const DEFAULT_NODE_STATUS = 1;
// We don't care if it's promoted, so default to no:
const DEFAULT_NODE_PROMOTE = 0;
// Sticky by default
I need a file manager module based on Amazon S3, with this features:
- ability to upload file about 100Mb
- ability to manage files (add, delete, move, create folders...)
- ability to link file from a node body or attach it like images (like attach image module)
- ability to restrict access by user role.
I am using TortoiseCVS and following "Quickstart guide for adding to Drupal CVS using a windows client" on http://drupal.org/node/112902 but when I follow step #7 "CVS Add Contents" then the following error msg appear:
---------------------------------------------------------------------------------------
cvs add: `blogger.info' added independently by second party
cvs add: `blogger.module' added independently by second party
cvs add: `CHANGELOG.TXT' added independently by second party
I'm creating a module and need to insert a dynamic menu item into the Primary Menu depending on the context. In this case I need a new link to appear in the Primary Menu if the user is viewing an "office" page. The actual link will be different for each office. How do I "hook" into the menu tree to make a change like this on the fly?
I was recently wanting to sell products and receive payment via PayPal. After hacking Quickfile and LM PayPal for a while, I realised that neither would really suit my requirements. Instead I tried to write a PayPal API module that works out of the box, but also allows other modules to plug in to it.
Sorry about the silly question... but I have gone kind of confused in the difference between Views/Themes and Views/Blocks.... can somebody please clear me the difference or point to the resources...