Drupal 6.x

Hide admin fields

* Hide admin fields from form
* Called from _form_alter
* @param unknown_type $form
function __hide_adminfields(&$form) {

$form['admin_only'] = array(
'#type' => 'fieldset',
'#title' => t('Admin settings'),
'#weight' => 100,
'#access arguments' => array('special_administration'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,

//Hide admin fields in one fieldset
$form['admin_only']['options'] = $form['options'];
$form['admin_only']['menu'] = $form['menu'];

Drupal module order

List your sites activated modules.

SELECT `name` , `status` , `weight` FROM `system` WHERE `type` = 'module' AND `status` =1 ORDER BY weight ASC LIMIT 0 , 200

Compare your sites activated modules with an other sites modules list in the same database.

Embed Drupal views in content, template or in your module

This is how you can get the view embedded. Another nice little trick is to actually embed the view in the node content/body, template or a function in your module. This way you don't have to create a region just for the gallery system, and it is so simple that it would be a shame not to do it this way! The only thing you need to do is to edit the node template of your theme, and paste a little snippet of code that will tell drupal which view and which display to embed. The code is like this :

<?php print views_embed_view('view_name', $display_id = 'display_id');?>

Page argument in menu

Send an argument to page from a menu item

['admin/content/node'] = array(
'title' => 'Content',
'description' => "View, edit, and delete your site's content.",
'page callback' => 'drupal_get_form',
'page arguments' => array('node_admin_content'),
'access arguments' => array('administer nodes'),
'file' => 'node.admin.inc',

Contact modules

Contact Form On Node
Kräver att avsändare är inloggad och fyller i mottagare och avsändare, vilket inte går att ändra. Kan styras per nodetyp och länk eller formulär i teaser eller fullview.

Advanced Contact
Inte så advanced,

Author Contact
Skapar ett block som sedan får styras via block-kontrollen
verkar vara ett och samma formulär

Contact Forms
Creates individual contact pages from contact form categories.
Men kan inte fylla på mer text innan eller kring formuläret.
praktiskt vid personkontakt.

Enables the creation of forms and questionnaires.