function nfsmigrate_settings in Node and Comments Form Settings 6.3
Same name and namespace in other branches
- 6.2 nfsmigrate/nfsmigrate.module \nfsmigrate_settings()
1 string reference to 'nfsmigrate_settings'
- nfsmigrate_menu in nfsmigrate/
nfsmigrate.module
File
- nfsmigrate/
nfsmigrate.module, line 20
Code
function nfsmigrate_settings() {
$form['help'] = array(
'#type' => 'markup',
'#value' => t("<p>Welcome to the migrate process. As part of the new version, all variables generated by Node Form Settings, are now in just one variable per content type and the Comments variables had been divided into a separated module.</p><p>The migration process will attempt to migrate all your variable settings, once the process starts, it shouldn't take more than a few seconds and <strong>all your previous variables will be permanently removed, so now is a good time to make a backup of your database.</strong> After the process completes, you will see the new array, please review and make changes if necessary by editing the proper content type.</p><p>Remember to enable the Comment Form Settings module to migrate those variables too</p><p>After you finish migrating both modules is completely safe to disable and uninstall the Migration module</p>"),
);
$form['submit_nfs'] = array(
'#value' => t("Start migration of Node Form Settings"),
'#type' => 'submit',
'#submit' => array(
'nfsmigrate_migrate_nodeformsettings',
),
);
if (!module_exists("nodeformsettings")) {
$form['submit_nfs']['#disabled'] = TRUE;
$form['submit_nfs']['#value'] = t("Install the Node Form Settings module to activate this button");
}
$form['submit_cfs'] = array(
'#value' => t("Start migration of Comment Form Settings"),
'#type' => 'submit',
'#submit' => array(
'nfsmigrate_migrate_commentformsettings',
),
);
if (!module_exists("commentformsettings")) {
$form['submit_cfs']['#disabled'] = TRUE;
$form['submit_cfs']['#value'] = t("Install the Comment Form Settings module to activate this button");
}
return $form;
}