function skinr_test_skinr_skin_info in Skinr 8.2
Same name and namespace in other branches
- 7.2 tests/skinr_test/skinr_test.skinr.inc \skinr_test_skinr_skin_info()
Implements hook_skinr_skin_info().
File
- tests/
modules/ skinr_test/ skinr_test.skinr.inc, line 24
Code
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;
}