You are here

function skinr_context_ui_edit in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr_context/skinr_context_ui.edit.inc \skinr_context_ui_edit()

Menu callback; prepares some variables and displays a Skinr edit form.

Parameters

$module: The module that we're editing settings of.

$element: The element of the object we're editing settings of.

$group: Skinr settings group object.

1 string reference to 'skinr_context_ui_edit'
skinr_context_ui_menu in skinr_context/skinr_context_ui.module
Implements hook_menu().

File

skinr_context/skinr_context_ui.edit.inc, line 19
Page callbacks for the Skinr Context UI module related to editing skins and groups.

Code

function skinr_context_ui_edit($module, $element, $group) {
  module_load_include('inc', 'skinr_ui', 'skinr_ui.edit');

  // Set defaults.
  $defaults = skinr_context_ui_form_get_defaults($module, $element, $group);
  return drupal_get_form('skinr_ui_form', array(
    'module' => $module,
    'element' => $element,
    'gid' => $group->gid,
  ), $defaults);
}