You are here

function features_tools_unlink_form in Features Tools 6

Same name and namespace in other branches
  1. 6.2 features_tools.module \features_tools_unlink_form()
1 string reference to 'features_tools_unlink_form'
features_tools_menu in ./features_tools.module
Implementation of hook_menu().

File

./features_tools.module, line 224
features_tools module

Code

function features_tools_unlink_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;
}