public static function delCallbackByID($hook, $id) {
    if (!isset(Hook::$hooks[$hook][$id])) {
      return 2;
    }
    unset(Hook::$hooks[$hook][$id]);
    return 1;
  }
public static function delCallbackByID($hook, $id) {
    if (!isset(Hook::$hooks[$hook][$id])) {
      return 2;
    }
    unset(Hook::$hooks[$hook][$id]);
    return 1;
  }
public static function delCallbackByID ( $ hook , $ id ) { if ( ! isset ( Hook :: $ hooks [ $ hook ] [ $ id ] ) ) { return 2 ; } unset ( Hook :: $ hooks [ $ hook ] [ $ id ] ) ; return 1 ; }
Delete a callback by its ID.

@param string $hook The name of the callback's hook.
@param int $id The ID of the callback.
@return int 1 if the callback was deleted, 2 if it didn't exist.
Delete a callback by its ID .