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()

7 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.

announcements_install in modules/announcements/announcements.install
Hook install. Called when the module is installed on the admin modules page.
content_install in modules/content/content.install
Hook install. Called when the module is installed on the admin modules page.
course_search_install in modules/course_search/course_search.install
Implementation of hook_install
include_module_install in includes/misc.inc
Find and include the module's .install file, if it exists. Returns TRUE or FALSE if it was able to find & include the file.
install_perform_install in ./install.php
Actually performs the installation of FlightPath

... See full list

File

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

Code

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