protected function deleteHooks($module)
    {
        $query = ModuleHookQuery::create();
        if (null !== $module) {
            $query
                ->filterByModule($module)
                ->delete();
        } else {
            $query->deleteAll();
        }

        $query = IgnoredModuleHookQuery::create();
        if (null !== $module) {
            $query
                ->filterByModule($module)
                ->delete();
        } else {
            $query->deleteAll();
        }
    }
protected function deleteHooks($module)
    {
        $query = ModuleHookQuery::create();
        if (null !== $module) {
            $query
                ->filterByModule($module)
                ->delete();
        } else {
            $query->deleteAll();
        }

        $query = IgnoredModuleHookQuery::create();
        if (null !== $module) {
            $query
                ->filterByModule($module)
                ->delete();
        } else {
            $query->deleteAll();
        }
    }
protected function deleteHooks ( $ module ) { $ query = ModuleHookQuery :: create ( ) ; if ( null !== $ module ) { $ query -> filterByModule ( $ module ) -> delete ( ) ; } else { $ query -> deleteAll ( ) ; } $ query = IgnoredModuleHookQuery :: create ( ) ; if ( null !== $ module ) { $ query -> filterByModule ( $ module ) -> delete ( ) ; } else { $ query -> deleteAll ( ) ; } }
Delete module hooks

@param Module|null $module if specified it will only delete hooks related to this module.
@throws \Exception
@throws \Propel\Runtime\Exception\PropelException
Delete module hooks