hook for db insert function on custom table Is there any hook on db_insert function on a custom table?

db_insert('projects')
  -&gt;fields(array(
    'title' =&gt; $title,
    'p_key' =&gt; $projectkey,
  ))-&gt;execute();
No, there's no hook invoked for db_insert.

If you have a custom table, though, you're probably controlling the insert code yourself, in which case you can invoke your own:

db_insert()-&gt;(...);
module_invoke_all('mymodule_foo_insert', $some_contextual_data);