function ftools_unlink_form in Features Tools 7.2
Same name and namespace in other branches
- 7 ftools.module \ftools_unlink_form()
Admin form to execute unlink files
1 string reference to 'ftools_unlink_form'
- ftools_menu in ./
ftools.module - Implements hook_menu().
File
- ./
ftools.module, line 288 - 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;
}