You are here

function sweaver_menu_callback_form in Sweaver 7

Same name and namespace in other branches
  1. 6 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 778
Sweaver functions.

Code

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