You are here

function _sweaver_sweaver_plugins in Sweaver 6

Same name and namespace in other branches
  1. 7 sweaver.registry.inc \_sweaver_sweaver_plugins()

Sweaver plugins.

1 call to _sweaver_sweaver_plugins()
sweaver_sweaver_plugins in ./sweaver.module
Implementation of hook_sweaver_plugins().

File

./sweaver.registry.inc, line 80
Registry for Sweaver.

Code

function _sweaver_sweaver_plugins() {
  $plugins = array();
  $plugins['sweaver_plugin_editor'] = array(
    'handler' => array(
      'tab' => t('Style'),
      'tab_description' => t('Click on the element you want to theme.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_editor',
      'file' => 'sweaver_plugin_editor.inc',
      'class' => 'sweaver_plugin_editor',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_styles'] = array(
    'handler' => array(
      'tab' => t('Manage styles'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_styles',
      'file' => 'sweaver_plugin_styles.inc',
      'class' => 'sweaver_plugin_styles',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_customcss'] = array(
    'handler' => array(
      'tab' => t('Custom css'),
      'tab_description' => t('Add custom css.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_customcss',
      'file' => 'sweaver_plugin_customcss.inc',
      'class' => 'sweaver_plugin_customcss',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_images'] = array(
    'handler' => array(
      'tab' => t('Images'),
      'tab_description' => t('Upload images to use as a background image.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_images',
      'file' => 'sweaver_plugin_images.inc',
      'class' => 'sweaver_plugin_images',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_themeswitch'] = array(
    'handler' => array(
      'tab' => t('Switch theme'),
      'tab_description' => t('Switch and style another theme.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_themeswitch',
      'file' => 'sweaver_plugin_themeswitch.inc',
      'class' => 'sweaver_plugin_themeswitch',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_themesettings'] = array(
    'handler' => array(
      'tab' => t('Theme settings'),
      'tab_description' => t('Configure the settings for this theme.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_themesettings',
      'file' => 'sweaver_plugin_themesettings.inc',
      'class' => 'sweaver_plugin_themesettings',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_themeclasses'] = array(
    'handler' => array(
      'tab' => t('Theme styles'),
      'tab_description' => t('Select an item - if any - to style it. Clicking will switch to the style editor form.'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_themeclasses',
      'file' => 'sweaver_plugin_themeclasses.inc',
      'class' => 'sweaver_plugin_themeclasses',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_fontface'] = array(
    'handler' => array(
      'tab' => t('Font face'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_fontface',
      'file' => 'sweaver_plugin_fontface.inc',
      'class' => 'sweaver_plugin_fontface',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_kb'] = array(
    'handler' => array(
      'tab' => t('Key bindings'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_kb',
      'file' => 'sweaver_plugin_kb.inc',
      'class' => 'sweaver_plugin_kb',
      'parent' => 'sweaver_plugin',
    ),
  );
  $plugins['sweaver_plugin_palettes'] = array(
    'handler' => array(
      'tab' => t('Palettes'),
      'path' => drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_palettes',
      'file' => 'sweaver_plugin_palettes.inc',
      'class' => 'sweaver_plugin_palettes',
      'parent' => 'sweaver_plugin',
    ),
  );
  return $plugins;
}