You are here

public function sweaver_plugin_editor::sweaver_theme in Sweaver 7

Same name and namespace in other branches
  1. 6 plugins/sweaver_plugin_editor/sweaver_plugin_editor.inc \sweaver_plugin_editor::sweaver_theme()

Theme registry.

Overrides sweaver_plugin::sweaver_theme

File

plugins/sweaver_plugin_editor/sweaver_plugin_editor.inc, line 158
Properties editor class.

Class

sweaver_plugin_editor
@file Properties editor class.

Code

public function sweaver_theme() {
  $theme_functions = array();
  $editor_plugin_path = drupal_get_path('module', 'sweaver') . '/plugins/sweaver_plugin_editor';
  $theme_functions = array(
    'sweaver_plugin_editor_config_editor' => array(
      'template' => 'sweaver-plugin-editor-config-editor',
      'file' => 'sweaver_plugin_editor.theme.inc',
      'path' => $editor_plugin_path,
      'render element' => 'form',
    ),
    'sweaver_plugin_editor_config_plugins' => array(
      'template' => 'sweaver-plugin-editor-config-plugins',
      'file' => 'sweaver_plugin_editor.theme.inc',
      'path' => $editor_plugin_path,
      'render element' => 'form',
    ),
    'sweaver_plugin_editor_objects_list' => array(
      'render element' => 'form',
    ),
  );
  return $theme_functions;
}