View source
<?php
function skinr_test_skinr_api_2() {
return array(
'directory' => 'skins',
);
}
function skinr_test_skinr_group_info() {
$groups['skinr_test'] = array(
'title' => t('skinr_test'),
);
}
function skinr_test_skinr_skin_info() {
$skins['skinr_test_font'] = array(
'title' => t('Font family'),
'type' => 'select',
'group' => 'typography',
'theme hooks' => array(
'block',
'region',
),
'default status' => 1,
'attached' => array(
'css' => array(
'skinr_test.css',
'skinr_test_advanced.css' => array(
'group' => CSS_THEME,
'weight' => 999,
),
array(
'data' => 'skinr_test_data.css',
'group' => CSS_THEME,
'weight' => 999,
),
),
'js' => array(
'skinr_test.js',
),
),
'options' => array(
'font_1' => array(
'title' => 'Arial, Helvetica, Nimbus Sans L, Liberation Sans, FreeSans',
'class' => array(
'font-1',
),
),
'font_2' => array(
'title' => 'Lucida Grande, Lucida Sans Unicode, DejaVu Sans, Tahoma',
'class' => array(
'font-2',
),
),
),
);
$skins['skinr_test_invalid_class'] = array(
'title' => t('Invalid'),
'type' => 'checkboxes',
'group' => 'general',
'theme hooks' => array(
'block',
),
'default status' => 1,
'options' => array(
'invalid_class' => array(
'title' => 'Nothing',
'class' => 'invalid-class',
),
),
);
return $skins;
}