function nodeformsettings_install in Node and Comments Form Settings 7.2
Same name and namespace in other branches
- 6.3 nodeformsettings.install \nodeformsettings_install()
- 6 nodeformsettings.install \nodeformsettings_install()
- 6.2 nodeformsettings.install \nodeformsettings_install()
- 7.3 nodeformsettings.install \nodeformsettings_install()
Implements hook_install().
Display a welcome message.
File
- ./
nodeformsettings.install, line 12 - Install, update and uninstall functions for the nodeformsettings module.
Code
function nodeformsettings_install() {
// @todo Please review the conversion of this statement to the D7 database API syntax.
/* db_query("UPDATE {system} SET weight = 1 WHERE name = 'nodeformsettings'") */
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'nodeformsettings')
->execute();
drupal_set_message(st('Node Form Settings is now installed. Customize your content types at <a href="@contenttypes">the content types settings page</a>.', array(
'@contenttypes' => url('admin/structure/types'),
)));
}