skinr_test.skinr.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Implements hook_skinr_api_VERSION().
  4. */
  5. function skinr_test_skinr_api_2() {
  6. return array(
  7. 'directory' => 'skins',
  8. );
  9. }
  10. /**
  11. * Implements hook_skinr_group_info().
  12. */
  13. function skinr_test_skinr_group_info() {
  14. $groups['skinr_test'] = array(
  15. 'title' => t('skinr_test'),
  16. );
  17. }
  18. /**
  19. * Implements hook_skinr_skin_info().
  20. */
  21. function skinr_test_skinr_skin_info() {
  22. $skins['skinr_test_font'] = array(
  23. 'title' => t('Font family'),
  24. 'type' => 'select',
  25. 'group' => 'typography',
  26. 'theme hooks' => array('block', 'region'),
  27. 'default status' => 1,
  28. 'attached' => array(
  29. 'css' => array('skinr_test.css'),
  30. 'js' => array('skinr_test.js'),
  31. ),
  32. 'options' => array(
  33. 'font_1' => array(
  34. 'title' => 'Arial, Helvetica, Nimbus Sans L, Liberation Sans, FreeSans',
  35. 'class' => array('font-1'),
  36. ),
  37. 'font_2' => array(
  38. 'title' => 'Lucida Grande, Lucida Sans Unicode, DejaVu Sans, Tahoma',
  39. 'class' => array('font-2'),
  40. ),
  41. ),
  42. );
  43. return $skins;
  44. }