asset_batch_acl_form

Versions
mediamosa-174
asset_batch_acl_form()

Code

vpx_beheer_mm/asset/asset_batch.inc, line 239

<?php
function asset_batch_acl_form() {
  $form['acl'] = array(
    '#type' => 'fieldset',
    '#title' => t('Domains and realms'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#weight' => 0,
    '#prefix' => '<div id="batch-acl-fieldset">',
    '#suffix' => '</div>',
  );

  $form['acl']['field'] = _asset_batch_acl_form();
  $form['acl']['field']['#prefix'] = '<div id="acl-items">';
  $form['acl']['field']['#suffix'] = '</div>';

  $form['acl']['form_more'] = array(
    '#type' => 'button',
    '#value' => t('Add field'),
    '#attributes' => array('onclick' => 'return FALSE;'),
    '#ahah' => array(
      'path' => 'asset/batch/add_acl_field',
      'wrapper' => 'acl-items',
      'method' => 'append',
    ),
  );
  $form['acl']['form_clear'] = array(
    '#type' => 'button',
    '#value' => t('Clear'),
    '#attributes' => array('onclick' => 'return FALSE;'),
    '#ahah' => array(
      'path' => 'asset/batch/clear_acl_fields',
      'wrapper' => 'acl-items',
      'method' => 'replace',
    ),
  );

  return $form;
}
?>