You are here

public function sweaver_plugin::sweaver_form_render in Sweaver 7

Same name and namespace in other branches
  1. 6 sweaver_plugin.inc \sweaver_plugin::sweaver_form_render()

Sweaver form render.

3 methods override sweaver_plugin::sweaver_form_render()
sweaver_plugin_advanced::sweaver_form_render in plugins/sweaver_plugin_advanced/sweaver_plugin_advanced.inc
Frontend form render.
sweaver_plugin_editor::sweaver_form_render in plugins/sweaver_plugin_editor/sweaver_plugin_editor.inc
Frontend form render.
sweaver_plugin_styles::sweaver_form_render in plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc
Frontend form render.

File

./sweaver_plugin.inc, line 155
Abstract Base class for a sweaver plugin.

Class

sweaver_plugin
@file Abstract Base class for a sweaver plugin.

Code

public function sweaver_form_render(&$vars, &$form, $plugin) {
  $name = $plugin['name'];
  if (isset($form[$name])) {
    if (isset($form[$name]['form']['#popups'])) {
      $this
        ->sweaver_popups_render($vars, $form, $name);
    }
    if (isset($form[$name]['#tab_name'])) {
      $vars['tabs'][$name]['#tab_name'] = $form[$name]['#tab_name'];
    }
    $vars['tabs_data'][$name]['#tab_description'] = $form[$name]['#tab_description'];
    $vars['tabs_data'][$name]['content'] = drupal_render($form[$name]['form']);
  }
}