Tag Archives: drupal 6

Drupal 6: New-forum-topic links fix

New forum topic links (i.e. node/add/forum/0) result in page not found. There seems to missing a menu entry to handle the forum id. This patch in the node module hook_menu() adds such item and fixes the problem. diff –git a/modules/node/node.module … Continue reading

Posted in Drupal | Tagged , , | Leave a comment

Drupal 6: What argument names *not* to use in hook_theme

When defining hook_theme the choice of argument names that are passed to the theme’s template is important. These argument names share a namespace with some default argument names that are added by template_preprocess. Using any of these names will conflict … Continue reading

Posted in Drupal | Tagged , , , , | Leave a comment

Drupal 6: Restricting access to users-search

The core search in drupal 6 adds a “Users” search tab in the search page. Although it has permissions settings for content search and for advanced search, there seems to be no built-in option to restrict access to the users … Continue reading

Posted in Drupal | Tagged , , , | Leave a comment

Drupal 6: Customizing individual checkboxes in hook_form_alter()

When hook_form_alter() is called, form elements of type ‘checkboxes’ are not yet expanded to individual checkbox elements: Array ( [#title] => Options [#type] => checkboxes [#options] => Array ( [opt_1] => Option 1 [opt_2] => Option 2 [opt_3] => Option … Continue reading

Posted in Drupal | Tagged , , | Leave a comment

Drupal 6: Notifications and content type access interaction

The notifications module lets users subscribe to content types that they don’t have view access to.
Continue reading

Posted in Drupal | Tagged , , | Leave a comment