function hook_install

This hook will be executed the first time a module is enabled in the system.

It is expected to go in a PHP file named [module].install. Ex: system.install

See also

hook_enable()

hook_disable()

hook_update($old_schema, $new_schema)

hook_uninstall()

16 functions implement hook_install()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

alerts_install in modules/alerts/alerts.install
Hook install. Called when the module is installed on the admin modules page.
announcements_install in modules/announcements/announcements.install
Hook install. Called when the module is installed on the admin modules page.
audit_install in modules/audit/audit.install
Implementation of hook_install.
batch_install in modules/batch/batch.install
Implementation of hook_install.
calendar_install in modules/calendar/calendar.install
Hook install. Called when the module is installed on the admin modules page.

... See full list

File

includes/hook.api.php, line 438
Lists all available hooks within FlightPath's core code.

Code

function hook_install() {
  // Perform installation functions.
  db_query("CREATE TABLE ...... ");
}