Rebuild theme registry
If you want to add a template file you have to rebuild your sites theme registry.
Put this first in template.tpl.php:
If you want to add a template file you have to rebuild your sites theme registry.
Put this first in template.tpl.php:
/**
* Hide admin fields from form
* Called from
*
* @param unknown_type $form
*/
function _
$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'];
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.
Here is the code that makes your module able to override other modules. Drupal uses a modules weight, stored in systems table when loading modules. The higher weight the later your module is loaded. You can use this if form_alter on an other modules form doesn't work and things like that.
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');?>
Send an argument to page from a menu item
<?php
$items['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 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.
Webform
Enables the creation of forms and questionnaires.