You are here

function ftools_unlink_form in Features Tools 7

Same name and namespace in other branches
  1. 7.2 ftools.module \ftools_unlink_form()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'ftools_unlink_form'
ftools_menu in ./ftools.module
Implements hook_menu().

File

./ftools.module, line 326
ftools module

Code

function ftools_unlink_form($form, $form_state) {
  $files = drupal_system_listing('/\\.unlink.inc$/', 'modules', 'name', 0);
  $form = array();
  $options = array();
  foreach ($files as $value) {
    $options[$value->name] = str_replace('_unlink.unlink', '', $value->name);
  }
  $form['unlink_options'] = array(
    '#type' => 'checkboxes',
    '#options' => $options,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'submit',
    '#name' => 'submit',
  );
  return $form;
}