You are here

function hook_feedback_insert in Feedback 7.2

Respond to creation of a new feedback entry.

Parameters

$entry: The feedback entry object.

See also

hook_feedback_update()

1 function implements hook_feedback_insert()

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

feedback_feedback_insert in ./feedback.module
Implements hook_feedback_insert().
1 invocation of hook_feedback_insert()
feedback_save in ./feedback.module
Saves changes to a feedback entry or adds a new feedback entry.

File

./feedback.api.php, line 47
Hooks provided by the Feedback module.

Code

function hook_feedback_insert($entry) {
  db_insert('mytable')
    ->fields(array(
    'fid' => $entry->fid,
    'extra' => $entry->extra,
  ))
    ->execute();
}