nodeformsettings.install in Node and Comments Form Settings 6.2
File
nodeformsettings.install
View source
<?php
function nodeformsettings_install() {
db_query("UPDATE {system} SET weight = 1 WHERE name = 'nodeformsettings'");
drupal_set_message(t('Node Form Settings is now installed. Customize your content types at <a href="@contenttypes">the content types settings page</a>.', array(
'@contenttypes' => url('admin/content/types'),
)));
}
function nodeformsettings_uninstall() {
$variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'nodeformsettings%%'");
while ($variable = db_fetch_object($variables)) {
variable_del($variable->name);
}
update_sql("DELETE FROM {system} WHERE name like '%nodeformsettings'");
}
function nodeformsettings_update_6200() {
$ret = array();
db_query("UPDATE {system} SET weight = 1 WHERE name = 'nodeformsettings'");
return $ret;
}