I am working on a module that needs to delete an extended node after 30 days. I have the cron job set up fine and I am correctly calling the hook_cron. I have debug messages going into watchdog letting me know that I am getting the proper nids of nodes that are old from an sql statement. Now I am just wondering the best way to actually delete these nodes. I looked at node_delete and it seemed to be the cleanest way to delete the node and all accompanying data.
SELECT users.*
FROM (users INNER JOIN users_roles ON users.uid = users_roles.uid) INNER JOIN role ON users_roles.rid = role.rid
WHERE role.name = 'authenticated user'
or
SELECT users.*
FROM (users INNER JOIN users_roles ON users.uid = users_roles.uid) INNER JOIN role ON users_roles.rid = role.rid
WHERE role.rid = 2
Hi, I'm wondering if someone can answer a quick question: I've created a new module and if I manually navigate to its settings in the admin area (for example, localhost/admin/settings/mymodule), I get the settings form fine. But in the admin menu, under modules/settings, my module's name isn't being listed. I thought that having the mymodule_settings() function would be enough for the admin to find it and display it, but apparently not? What else is needed for it to be shown in the menu?
I installed drupal 4.5 and i have been encountering problems when i post content that is enclosed withing formatting tags and longer than the length specified in the content settings ( the default is 600)
If i use any formatting like <em> or other tags then the teaser truncates the text upto 600 characters and posts it in the main page. The problem is that the TAG is not closed at this point and the remaining page is also generated where all the remaining teasers are displayed as if they have been enclosed in <em> tags.
I just installed the Flexinode module and I keep getting the following errors at the top of my pages:
warning: main(colorpickerform.inc): failed to open stream: No such file or directory in /webdocs/test/public_html/sandbox/drupal/modules/flexinode/contrib/field_colorpicker.inc on line 4.
warning: main(): Failed opening 'colorpickerform.inc' for inclusion (include_path='') in /webdocs/test/public_html/sandbox/drupal/modules/flexinode/contrib/field_colorpicker.inc on line 4.