You are here

function hook_fieldable_panels_pane_insert in Fieldable Panels Panes (FPP) 7

Respond to creation of a new fieldable panels pane.

Parameters

object $panels_pane: The fieldable that is being created.

1 invocation of hook_fieldable_panels_pane_insert()
PanelsPaneController::save in includes/PanelsPaneController.class.php
Save the given FPP object.

File

./fieldable_panels_panes.api.php, line 35
Hooks provided by the Fieldable Panels Panes module.

Code

function hook_fieldable_panels_pane_insert($panels_pane) {
  db_insert('mytable')
    ->fields(array(
    'fpid' => $panels_pane->fpid,
    'vid' => $panels_pane->vid,
  ))
    ->execute();
}