#defualt_value

Fix for Show block: how if the following PHP code returns TRUE (PHP-mode, experts only).

  1. <?php
  2. $match = false;
  3. if (arg(0) == 'node' && is_numeric(arg(1))) {
  4.     $node = node_load(arg(1));
  5.     if ($node->type=='produkt')
  6.      {
  7.         $match = TRUE;
  8.      }
  9. }
  10. return $match;
  11. ?>

hokla

  1. Hola

the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => 'Select From List'
  4.                 '#options' => array(0=>'A', 1=>'B', 2=>'C' ,3=>'D',),
  5.                 '#multiple' => true,
  6.                 '#size' => 3,
Syndicate content