function hook_install
Search API
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_update($old_schema, $new_schema)
8 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.
- batch_install in modules/
batch/ batch.install - Implementation of hook_install.
- 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.
File
- includes/
hook.api.php, line 369 - Lists all available hooks within FlightPath's core code.
Code
function hook_install() {
// Perform installation functions.
db_query("CREATE TABLE ...... ");
}