You are here

function sbp_paths_sbp_delete_environment in Search by Page 7

Same name and namespace in other branches
  1. 6 sbp_paths.module \sbp_paths_sbp_delete_environment()

Implements hook_sbp_delete_environment().

Removes the environment from paths database table.

File

./sbp_paths.module, line 546
Module file for Search by Page Paths, a sub-module for Search by Page.

Code

function sbp_paths_sbp_delete_environment($environment) {
  $envid = intval($environment);
  db_delete('sbpp_path')
    ->condition('environment', $envid)
    ->execute();
}