admin

display current database name being used in page.tpl.php

  1. <?php
  2.    global $user;
  3.    global $db_url;
  4.    if ($user->uid == 1) { // display for admin only
  5.     print '<h3>Current Database:'.

determine block visibility only for admin

  1. global $user;
  2. if (($user->uid) == 1) {
  3.   return TRUE;
  4. }
  5. else {
  6.   return FALSE;
  7. }

Fix for Fix for Fix for Fix for Fix for admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

Fix for Fix for Fix for Fix for admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

Fix for Fix for Fix for admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

Fix for Fix for admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

Fix for admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

admin_extras.module

  1. <?php
  2. // $Id$
  3. /**
  4.  * @file admin_extras.module
  5.  * Set the Admin Panal to allways expanded.
  6.  */
  7.  
  8. function admin_extras_form_admin_settings_form_alter (&$form, &$form_state) {
  9.   $form['admin_too

Fix for Settingsvalue are not saved

  1. /**
  2.  * Form builder; return the brunnenberg settings form.
  3.  */
  4. function brunnenberg_settings() {
  5.     $form = array();
  6.  
  7.  
  8.   $form['brunnenberg_einzelzimmer'] = array(
  9.     '#type' => 'textfield

Settingsvalue are not saved

  1. /**
  2.  * Form builder; return the brunnenberg settings form.
  3.  */
  4. function brunnenberg_settings() {
  5.     $form = array();
  6.  
  7.  
  8.   $form['brunnenberg_einzelzimmer'] = array(
  9.     '#type' => 'textfield
Syndicate content