You are here

function patterns_d2d_form_outgoing_configure in Patterns 7.2

Same name and namespace in other branches
  1. 7 patterns_d2d/includes/patterns_d2d.form.inc \patterns_d2d_form_outgoing_configure()
1 string reference to 'patterns_d2d_form_outgoing_configure'
patterns_d2d_share_patterns in patterns_d2d/includes/patterns_d2d.form.inc

File

patterns_d2d/includes/patterns_d2d.form.inc, line 16
Push public patterns to friend instances.

Code

function patterns_d2d_form_outgoing_configure() {
  $form = array();
  $form['address'] = array(
    '#type' => 'textfield',
    '#title' => t('Address'),
    '#description' => t('Address of a central server to which patterns should be published'),
    '#default_value' => variable_get('patterns_d2d_server', PATTERNS_D2D_SERVER),
    '#size' => 40,
    '#maxlength' => DRUPALTODRUPAL_INSTANCE_URL_MAX_LENGTH,
    '#required' => TRUE,
  );
  $form['auto'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('patterns_d2d_auto_publish', FALSE),
    '#title' => t('Automatically publish patterns'),
    '#description' => t('If checked, patterns are automatically published whenever the \'publish\'-button is hit.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}