variable_get

Events happening in the community are now at Drupal community events on www.drupal.org.
rgchi's picture

Filtering assoc array returned from variable_get()

Given this checkboxes form field for a drupal module

$form['soc_eport_expireByFiletype'] = array(
        '#type' => 'checkboxes',
        '#title' => t('Select file extention'),
        '#default_value' => variable_get('soc_eport', array('gif'=>'Gif')),
        '#options' => array(
          'gif' => t('GIF'),
          'jpeg' => t('JPEG'),
          'jpg'=> t('JPG'),
          'png' => t('PNG'),
        ),
 
      );
   

It produces this array:

Array
( [gif] => gif
[jpeg] => jpeg
[jpg] => 0
[png] => 0
)

Read more
shushu's picture

Acquia Marina/Fusion Core with domain themes - a problem !?!

Hello,
I am using domain access and domain theme to create subdomains and to theme them specifically.
Till I started working with Skinr/Fusion/Acquia Marina everything worked fine with setting theme configuration per theme.

Since Acquia Marina and Fusion is such a nice looking theme I decided to move to it, and setup the main domain.com to it, changing all I wanted.

Then I created another subtheme of Fusion (I copied Acquia Marina, and properly changed all of the names) and selected it for my subdomain.domain.com.

Read more
Subscribe with RSS Syndicate content