Questions tagged [hook-install]

hook_install() is the hook used to perform setup tasks when a module is installed.

hook_install() is the hook called when a module is being installed, but not when the module is being updated.

In Drupal 6, if a module is using a database table, its hook_install() implementation needs to call drupal_install_schema() in order to install its schema. This is not anymore necessary starting from Drupal 7, as Drupal 7 automatically calls drupal_install_schema() when installing a module.

2 questions
2
votes
1 answer

Setting pages on which block will appear in Drupal installation profile

Created installation profile and need to make some custom block be visible on particular pages. In profile_name.install : profile_name_install(): $values = array( array( 'module' => 'my_custom_module', 'delta' => 'my_block',…
Jokerius
  • 1,310
  • 1
  • 14
  • 22
-2
votes
1 answer

I want to hide a file from certain processes in Windows using hooking

I want to hide a file from certain processes in Windows using hooking. Any help with the code will be greatly appreciated?