Change title on node/add form drupal6
Read moreUse the old drupal_set_title('') function to set the title and put it in hook_form_alter. Why in a hook_form_alter? If you do it in preprocess page your 're to late, if you want it to do with...
View ArticleRestirct access to a users own profile
Read moreWe're providing an example that restricts access for an admin of an organic group to his own profile.Restirct access to a users own profiledrupal6menucustom moduleusersTuesday, April 29, 2008...
View ArticleProblems with node permissions drupal
Read moreFrom drupal.org : If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules...
View ArticleDrupal 6 theming : preprocessing function
Read moreUse this function if you want to pass extra variables to a tpl.php file.Drupal 6 theming : preprocessing functiondrupal6themingWednesday, August 27, 2008 - 23:02
View ArticleDrupal 5-6: Restrict a content type from your search results
Read moreIf you are looking to exlude feedapi nodes or webform nodes or maybe even node-types you ve created yourself using cck from your search results because they are not relevant.Use...
View ArticleSolution in case db_last_insert fails on you because LAST_INSERT_ID() is...
Read moreProblem: You want to know the next id for the nodes. According to drupal you should use db_last_insert('table', 'field'). It returned allways zero for me.What is the solution to overcome this...
View ArticleDrupal 6 : Evil taxonomy hierarchy bug, leaves your hierarchy not working
Read moreThe vocabulary edit form hardcodes the value of the 'hierarchy' flag to '0', therefore resetting it when the form is submitted and the vocabulary saved. (from drupal.org) You also need to...
View ArticleDrupal 6 importing taxonomy terms easy mode
Read moreI just discovered a very handy api to import taxonomy. I needed to do something very simple import some terms into a vocabulary (no hierarchy, no related terms, just tags..). It is included...
View ArticleSolution : Drupal Locale language files dont get rebuild
Read morelocale language files don't get rebuild and they keep generating page not found errors. This post provides a fix to rebuild the lost translation files.Solution : Drupal Locale language files...
View ArticleDrupal 6 tinymce: Disable tinymce on textarea (how to overide...
Read moreIt's impossible to override this function. Why? Look at the functions name. It confusses drupal thinking its an implementation of hook_theme(). So any override in template.php using...
View Article