You are here

function sweaver_menu_callback_form in Sweaver 6

Same name and namespace in other branches
  1. 7 sweaver.module \sweaver_menu_callback_form()

Helper function to return the form passed by sweaver_menu_callback.

Parameters

$plugin_name: Name of the plugin.

$callback_method: Name of the method to call.

Return value

$form The rendered form.

1 string reference to 'sweaver_menu_callback_form'
sweaver_menu_callback in ./sweaver.module
Sweaver menu callback.

File

./sweaver.module, line 612
Sweaver functions.

Code

function sweaver_menu_callback_form($form_state, $form, $plugin_name, $callback_method) {
  $form['#plugin_name'] = $plugin_name;
  $form['#callback_method'] = $callback_method;
  return $form;
}