You are here

function skinr_ui_form in Skinr 6.2

Same name and namespace in other branches
  1. 7.2 skinr_ui.edit.inc \skinr_ui_form()

Skinr form.

5 string references to 'skinr_ui_form'
node_skinr_config in modules/node.skinr.inc
Implementation of hook_skinr_config().
skinr_skinr_config in modules/skinr.skinr.inc
Implementation of hook_skinr_config().
skinr_ui_edit in ./skinr_ui.module
Menu callback; prepares some variables and displays a Skinr edit form.
skinr_ui_form_submit in ./skinr_ui.module
Submit handler.
views_skinr_config in modules/views.skinr.inc
Implementation of hook_skinr_config().

File

./skinr_ui.module, line 297

Code

function skinr_ui_form(&$form_state, $arguments = array()) {
  $form = array(
    '#attributes' => array(
      'class' => 'skinr-form',
    ),
  );
  $form['skinr']['module'] = array(
    '#type' => 'hidden',
    '#value' => !empty($form_state['skinr']['module']) ? $form_state['skinr']['module'] : $arguments['skinr']['module'],
  );
  $form['skinr']['sid'] = array(
    '#type' => 'hidden',
    '#value' => !empty($form_state['skinr']['sid']) ? $form_state['skinr']['sid'] : $arguments['skinr']['sid'],
  );
  if (!empty($form_state['skinr']['sids']) || !empty($arguments['skinr']['sids'])) {
    $form['skinr']['sids'] = array(
      '#type' => 'hidden',
      '#value' => !empty($form_state['skinr']['sids']) ? $form_state['skinr']['sids'] : $arguments['skinr']['sids'],
    );
  }
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
    '#weight' => 50,
  );
  return $form;
}