You are here

function hook_panels_delete_display in Panels 7.3

Fired before a display is deleted.

Parameters

int $did: Id of the display to delete.

1 function implements hook_panels_delete_display()

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

i18n_panels_panels_delete_display in i18n_panels/i18n_panels.module
Implements hook_panels_display_delete().
1 invocation of hook_panels_delete_display()
panels_delete_display in ./panels.module
Delete a display.

File

./panels.api.php, line 256
Hooks provided by Panels.

Code

function hook_panels_delete_display($did) {
  $uuid = db_select('panels_display')
    ->fields('panels_display', array(
    'uuid',
  ))
    ->condition('did', $did)
    ->execute()
    ->fetchColumn();
  $display = (object) array(
    'uuid' => $uuid,
  );
  i18n_string_object_remove('display_configuration', $display);
}