function features_tools_unlink_form_submit in Features Tools 6.2
Same name and namespace in other branches
- 6 features_tools.module \features_tools_unlink_form_submit()
File
- ./
features_tools.module, line 241 - features_tools module
Code
function features_tools_unlink_form_submit($form, &$form_state) {
$hooks = _features_tools_get_hooks();
$files = drupal_system_listing('\\.unlink.inc$', 'modules', 'name', 0);
foreach ($form_state['values']['unlink_options'] as $key => $value) {
if ($value) {
include_once $files[$key]->filename;
views_include('view');
//ft_unlink_unlink_views
foreach ($hooks as $hook) {
$function_name = str_replace('.unlink', '', $key) . "_{$hook}";
$function_name = str_replace('.', '_', $function_name);
if (function_exists($function_name)) {
call_user_func_array($function_name, array());
drupal_set_message("{$hook} {$function_name}");
}
}
}
}
}