You are here

function patterns_d2d_form_incoming_configure in Patterns 7.2

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

File

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

Code

function patterns_d2d_form_incoming_configure() {
  $form = array();
  $form['allow'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('patterns_d2d_allow_publish', FALSE),
    '#title' => t('Allow patterns to be published'),
    '#description' => t('If checked, friends with the required permissions can publish patterns on this server, see D2D\'s groups/permissions.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}